aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeng Xiao <xiaofeng@google.com>2016-09-12 16:08:16 -0700
committerGitHub <noreply@github.com>2016-09-12 16:08:16 -0700
commit1affbd8717844b7bd3e8914e50e09cbd21142976 (patch)
tree3ea512ff66ac2db0288fec52fda25633556171d2
parent4f032cd9affcff0747f5987dfdc0a04deee7a46b (diff)
parentf5c7a4896d329c669896b7f9f63e347462cce497 (diff)
downloadprotobuf-1affbd8717844b7bd3e8914e50e09cbd21142976.tar.gz
protobuf-1affbd8717844b7bd3e8914e50e09cbd21142976.tar.bz2
protobuf-1affbd8717844b7bd3e8914e50e09cbd21142976.zip
Merge pull request #2021 from zlim/bench-fix
benchmarks: update readme.txt
-rw-r--r--benchmarks/readme.txt22
1 files changed, 9 insertions, 13 deletions
diff --git a/benchmarks/readme.txt b/benchmarks/readme.txt
index 2c836d0a..b08b8bc0 100644
--- a/benchmarks/readme.txt
+++ b/benchmarks/readme.txt
@@ -22,29 +22,25 @@ Running a benchmark (Java)
$ javac -d tmp -cp protobuf.jar ProtoBench.java
3) Generate code for the relevant benchmark protocol buffer, e.g.
- $ protoc --java_out=tmp google_size.proto google_speed.proto
+ $ protoc --java_out=tmp google_size.proto
4) Build the generated code, e.g.
- $ cd tmp
- $ javac -d . -cp ../protobuf.jar benchmarks/*.java
+ $ javac -d tmp -cp protobuf.jar tmp/benchmarks/*.java
5) Run the test. Arguments are given in pairs - the first argument
is the descriptor type; the second is the filename. For example:
- $ java -cp .;../protobuf.jar com.google.protocolbuffers.ProtoBench
- benchmarks.GoogleSize$SizeMessage1 ../google_message1.dat
- benchmarks.GoogleSpeed$SpeedMessage1 ../google_message1.dat
- benchmarks.GoogleSize$SizeMessage2 ../google_message2.dat
- benchmarks.GoogleSpeed$SpeedMessage2 ../google_message2.dat
+ $ java -cp tmp:protobuf.jar com.google.protocolbuffers.ProtoBench \
+ 'benchmarks.GoogleSize$SizeMessage1' google_message1.dat \
+ 'benchmarks.GoogleSize$SizeMessage2' google_message2.dat
-6) Wait! Each test runs for around 30 seconds, and there are 6 tests
+6) Wait! Each test runs for around 30 seconds, and there are 8 tests
per class/data combination. The above command would therefore take
- about 12 minutes to run.
+ about 8 minutes to run.
Benchmarks available
--------------------
From Google:
-google_size.proto and google_speed.proto, messages
-google_message1.dat and google_message2.dat. The proto files are
-equivalent, but optimized differently.
+google_size.proto,
+messages google_message1.dat and google_message2.dat.