aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmarks
diff options
context:
space:
mode:
authorGravatar Yilun Chong <chongyilun250@sina.com>2018-03-22 17:09:25 -0700
committerGravatar GitHub <noreply@github.com>2018-03-22 17:09:25 -0700
commita7a746f0b79548372ccfa11c7584bac4f7bda1b0 (patch)
treec015f897496d24cca145beac12ae0c6dd680298f /benchmarks
parent227363bc38438b1d272bffe4c89d9d562c4e655a (diff)
parent745ef89ebf9408afc229ab6b6c28a16ef8268a8f (diff)
Merge pull request #4346 from BSBandme/performance_result
Add performance.md and add instruction for linking tcmalloc
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/README.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/benchmarks/README.md b/benchmarks/README.md
index 74c042d8..ba906c15 100644
--- a/benchmarks/README.md
+++ b/benchmarks/README.md
@@ -3,7 +3,9 @@
This directory contains benchmarking schemas and data sets that you
can use to test a variety of performance scenarios against your
-protobuf language runtime.
+protobuf language runtime. If you are looking for performance
+numbers of officially support languages, see [here](
+https://github.com/google/protobuf/blob/master/docs/Performance.md)
## Prerequisite
@@ -17,6 +19,11 @@ We are using [google/benchmark](https://github.com/google/benchmark) as the
benchmark tool for testing cpp. This will be automaticly made during build the
cpp benchmark.
+The cpp protobuf performance can be improved by linking with [tcmalloc library](
+https://gperftools.github.io/gperftools/tcmalloc.html). For using tcmalloc, you
+need to build [gpertools](https://github.com/gperftools/gperftools) to generate
+libtcmallc.so library.
+
### Java
We're using maven to build the java benchmarks, which is the same as to build
the Java protobuf. There're no other tools need to install. We're using
@@ -79,6 +86,12 @@ $ make java
$ make cpp
```
+For linking with tcmalloc:
+
+```
+$ env LD_PRELOAD={directory to libtcmalloc.so} make cpp
+```
+
### Python:
We have three versions of python protobuf implementation: pure python, cpp