Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit a84a137

Browse files
authored
feat: initial version of throughput benchmark (#928)
This benchmark just measures how many reads and write operations per second we can execute using the client library, with both a single `spanner::Client` and using one per thread. This is the first version, it only measures the throughput for insert mutations (but not DML statements), and for `SELECT` queries (but not `Read()` calls). Those other measurements will be added later.
1 parent 8864ec4 commit a84a137

File tree

3 files changed

+583
-1
lines changed

3 files changed

+583
-1
lines changed

google/cloud/spanner/integration_tests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ function (spanner_client_define_integration_tests)
4242
database_admin_integration_test.cc
4343
client_stress_test.cc
4444
instance_admin_integration_test.cc
45-
rpc_failure_threshold_integration_test.cc)
45+
rpc_failure_threshold_integration_test.cc
46+
throughput_benchmark.cc)
4647
set(spanner_client_install_tests spanner_install_test.cc)
4748

4849
# Export the list of unit tests to a .bzl file so we do not need to maintain

google/cloud/spanner/integration_tests/spanner_client_integration_tests.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ spanner_client_integration_tests = [
2222
"client_stress_test.cc",
2323
"instance_admin_integration_test.cc",
2424
"rpc_failure_threshold_integration_test.cc",
25+
"throughput_benchmark.cc",
2526
]

0 commit comments

Comments
 (0)