aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/readme.txt
diff options
context:
space:
mode:
authorYilun Chong <chongyilun250@sina.com>2017-12-05 10:54:14 -0800
committerGitHub <noreply@github.com>2017-12-05 10:54:14 -0800
commit173f3043d30317c16caa6a5c1e16db2540e8170c (patch)
treea6f8121ac2fab8ee99f27b6155ae222732bbffaa /benchmarks/readme.txt
parentdb7c043f6dce400e4c777810a76fe900a7f0bc7e (diff)
parent1fd6c1761e7c70081af3b71a76a890002d4b578d (diff)
downloadprotobuf-173f3043d30317c16caa6a5c1e16db2540e8170c.tar.gz
protobuf-173f3043d30317c16caa6a5c1e16db2540e8170c.tar.bz2
protobuf-173f3043d30317c16caa6a5c1e16db2540e8170c.zip
Merge pull request #3926 from BSBandme/down_sync_benchmark
Sync benchmark changes from internal
Diffstat (limited to 'benchmarks/readme.txt')
-rw-r--r--benchmarks/readme.txt46
1 files changed, 0 insertions, 46 deletions
diff --git a/benchmarks/readme.txt b/benchmarks/readme.txt
deleted file mode 100644
index b08b8bc0..00000000
--- a/benchmarks/readme.txt
+++ /dev/null
@@ -1,46 +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
-
-4) Build the generated code, e.g.
- $ 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 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 8 tests
- per class/data combination. The above command would therefore take
- about 8 minutes to run.
-
-
-Benchmarks available
---------------------
-
-From Google:
-google_size.proto,
-messages google_message1.dat and google_message2.dat.