aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmarks/README.md
diff options
context:
space:
mode:
authorGravatar BSBandme <chongyilun250@sina.com>2018-03-07 00:35:42 -0800
committerGravatar BSBandme <chongyilun250@sina.com>2018-03-07 00:35:42 -0800
commit4e3c41349383fa6275a18a1c9c462c209ab361a8 (patch)
treeaa7e61dd1f0e5cc0fad69f0c85c9f2f2d8421f44 /benchmarks/README.md
parent9dc0a4d5cf181845c4c8ca6c482ec38cc1835bbc (diff)
Add go benchmark
Diffstat (limited to 'benchmarks/README.md')
-rw-r--r--benchmarks/README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/benchmarks/README.md b/benchmarks/README.md
index 459c7b9d..183280ff 100644
--- a/benchmarks/README.md
+++ b/benchmarks/README.md
@@ -36,6 +36,18 @@ $ sudo apt-get install python3-dev
```
And you also need to make sure `pkg-config` is installed.
+### Go
+Golang protobuf is under [golang repo](https://github.com/golang/protobuf), you
+need to install golang and golang protobuf's proto and protoc-gen-go before
+running the benchmark. And we're using [testing package](https://golang.org/pkg/testing/)
+to test benchmark.
+
+To install golang protobuf proto and protoc-gen-go, you can
+```
+$ go get -u github.com/golang/protobuf/protoc-gen-go
+$ go get -u github.com/golang/protobuf/proto
+```
+
### Big data
There's some optional big testing data which is not included in the directory
@@ -87,6 +99,11 @@ $ make python-cpp-reflection
$ make python-cpp-generated-code
```
+### Go
+```
+$ make go
+```
+
To run a specific dataset:
### Java:
@@ -126,6 +143,13 @@ $ make python-cpp-generated-code-benchmark
$ ./python-cpp-generated-code-benchmark $(specific generated dataset file name)
```
+### Go:
+```
+$ make go-benchmark
+$ ./go-benchmark $(specific generated dataset file name)
+```
+
+
## Benchmark datasets
Each data set is in the format of benchmarks.proto: