By using benchmark.js, create the benchmark testing on Cloud Spanner.
You could choose nvm to install the Node.js.
- driverBench
- common.js -> provides project/instance/database/
- index0214.js -> main program
- index-stale.js -> main program
- package.json
- spannerBench
- benchmark.js
- constants.js -> includes benchmark parameters such as execution time
- index.js
- runner.js -> contains time measure functions
- suite.js
- util.js
- Add your workload to the main program as a task;
- Group mulitple tasks as a test suite.
- Execute the benchmark