diff options
author | Colin Cross <ccross@android.com> | 2018-11-04 17:36:06 -0800 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-11-06 23:59:00 +0000 |
commit | 90d15808211c046633273ba4b8ec09550df99f15 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /benchmarks/readme.txt | |
parent | 8e63d53115f3358d3a9431aa06a81185e6823c7d (diff) | |
download | protobuf-javalite-90d15808211c046633273ba4b8ec09550df99f15.tar.gz |
Revert "Merge tag 'v3.0.1-javalite'"
This reverts commit f4fe6ab6726e235448020c5fd203e4fc1dad728e, reversing
changes made to 6e463f53f1f82dfe0a74e25ae729601a9678730c.
Change-Id: I451a710a7b755868c8d6a8de56a0b9bb55fedad6
(cherry picked from commit 61f57327388b1c133011da01545f0a24e09fddf0)
Diffstat (limited to 'benchmarks/readme.txt')
-rw-r--r-- | benchmarks/readme.txt | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/benchmarks/readme.txt b/benchmarks/readme.txt deleted file mode 100644 index 2c836d0a..00000000 --- a/benchmarks/readme.txt +++ /dev/null @@ -1,50 +0,0 @@ -Contents --------- - -This folder contains three kinds of file: - -- Code, such as ProtoBench.java, to build the benchmarking framework. -- Protocol buffer definitions (.proto files) -- Sample data files - -If we end up with a lot of different benchmarks it may be worth -separating these out info different directories, but while there are -so few they might as well all be together. - -Running a benchmark (Java) --------------------------- - -1) Build protoc and the Java protocol buffer library. The examples - below assume a jar file (protobuf.jar) has been built and copied - into this directory. - -2) Build ProtoBench: - $ 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 - -4) Build the generated code, e.g. - $ cd tmp - $ javac -d . -cp ../protobuf.jar 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 - -6) Wait! Each test runs for around 30 seconds, and there are 6 tests - per class/data combination. The above command would therefore take - about 12 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. |