| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains a utility to compare latencies of different public methods supported by the Java Client Library. The tests use simple statements that operate on a single row at a time.
The goal is that addition of new features should not add any latency.
All tests in this directory use a database with a single table. Follow these steps to create a database that you can use for these tests:
export SPANNER_CLIENT_BENCHMARK_GOOGLE_CLOUD_PROJECT=my-project
export SPANNER_CLIENT_BENCHMARK_SPANNER_INSTANCE=my-instance
export SPANNER_CLIENT_BENCHMARK_SPANNER_DATABASE=my-databaseCREATE TABLE FOO ( id INT64 NOT NULL, BAZ INT64, BAR INT64, ) PRIMARY KEY(id);The benchmark application includes Java Client as a dependency. Modify the dependency version in pom.xml file if you wish to benchmark a different version of Java Client.
mvn clean compile exec:java -Dexec.args="--clients=1 --operations=1000 --multiplexed=true"mvn clean compile exec:java -Dexec.args="--clients=10 --operations=5000 --multiplexed=true"mvn clean compile exec:java -Dexec.args="--clients=10 --operations=5000"| Back | FazBrowse Home | New Git URL |