https://github.com/cloudspannerecosystem/spanner-bench
Google Cloud Spanner Query Planner Benchmarking
https://github.com/cloudspannerecosystem/spanner-bench
google-cloud google-cloud-platform google-cloud-spanner
Last synced: 5 months ago
JSON representation
Google Cloud Spanner Query Planner Benchmarking
- Host: GitHub
- URL: https://github.com/cloudspannerecosystem/spanner-bench
- Owner: cloudspannerecosystem
- License: apache-2.0
- Created: 2020-03-24T03:37:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-07T01:53:38.000Z (about 2 years ago)
- Last Synced: 2024-07-04T02:35:57.927Z (almost 2 years ago)
- Topics: google-cloud, google-cloud-platform, google-cloud-spanner
- Language: Go
- Homepage:
- Size: 80.4 MB
- Stars: 24
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README

A Google Cloud Spanner transaction benchmarking framework.
[](https://circleci.com/gh/cloudspannerecosystem/spanner-bench)
See `examples/helloworld` for an example.
## Usage
```
$ go run examples/helloworld/main.go
BenchmarkReadOnly
Latency histogram:
65.772419ms : ■ (1)
310.325496ms: ■■■■■■■■■■■■■■■■■■■■ (37)
554.878574ms: ■■■ (6)
799.431651ms: ■■ (3)
1.043984729s: ■ (1)
1.288537807s: ■ (2)
Benchmark
Latency histogram:
101.510159ms: ■ (1)
355.964311ms: ■■■■■■■■■■■■■■■■■■■■ (46)
610.418464ms: ■ (2)
864.872616ms:
1.119326769s:
1.373780922s: ■ (1)
```
## Notes
* The framework only reports the client-perceived latency at the moment.
* The benchmarks are run sequentially, concurrency support is in the
roadmap but is not implemented yet.
* Note timestamp bound support is work in progress.
* Framework can warm-up the sessions before starting to benchmark.
This improvement is in the roadmap.
## Disclaimer
This is not an official Google product.