@@ -20,41 +20,45 @@ git submodule update --init --recursive
2020cmake -DCMAKE_BUILD_TYPE=Release -H. -Bbuild-output
2121cmake --build build-output -- -j $( nproc)
2222
23+ readonly PROJECT_ROOT=$( pwd)
24+ echo PROJECT_ROOT=${PROJECT_ROOT}
2325cd build-output
2426ctest --output-on-failure
2527
28+ readonly BTDIR=" google/cloud/bigtable"
29+
2630case ${BENCHMARK} in
2731 endurance)
28- bigtable /benchmarks/endurance_benchmark ${PROJECT_ID} ${INSTANCE_ID} 4 82800;
32+ " ${BTDIR} /benchmarks/endurance_benchmark" " ${PROJECT_ID} " " ${INSTANCE_ID} " 4 82800;
2933 ;;
3034 latency)
31- bigtable /benchmarks/apply_read_latency_benchmark ${PROJECT_ID} ${INSTANCE_ID} ;
35+ " ${BTDIR} /benchmarks/apply_read_latency_benchmark" " ${PROJECT_ID} " " ${INSTANCE_ID} " ;
3236 ;;
3337 throughput)
3438 # The magic number 64 here is the number of threads necessary to saturate the CPU
3539 # on a n1-standard-4 GCE instance (that is 4 vCPUs).
36- bigtable /benchmarks/apply_read_latency_benchmark ${PROJECT_ID} ${INSTANCE_ID} 64 1800;
40+ " ${BTDIR} /benchmarks/apply_read_latency_benchmark" " ${PROJECT_ID} " " ${INSTANCE_ID} " 64 1800;
3741 ;;
3842 scan)
39- bigtable /benchmarks/scan_throughput_benchmark ${PROJECT_ID} ${INSTANCE_ID} 1 1800;
43+ " ${BTDIR} /benchmarks/scan_throughput_benchmark" " ${PROJECT_ID} " " ${INSTANCE_ID} " 1 1800;
4044 ;;
4145 integration)
42- (cd bigtable /tests && ../../../bigtable/ tests/run_integration_tests_production.sh);
43- (cd bigtable /examples && ../../../bigtable/ examples/run_examples_production.sh);
46+ (cd " ${BTDIR} /tests" && " ${PROJECT_ROOT} / ${BTDIR} / tests/run_integration_tests_production.sh" );
47+ (cd " ${BTDIR} /examples" && " ${PROJECT_ROOT} / ${BTDIR} / examples/run_examples_production.sh" );
4448 ;;
4549 # The following cases are used to test the script when making changes, they are not good
4650 # benchmarks.
4751 endurance-quick)
48- bigtable /benchmarks/endurance_benchmark ${PROJECT_ID} ${INSTANCE_ID} 1 5 1000 true ;
52+ " ${BTDIR} /benchmarks/endurance_benchmark" " ${PROJECT_ID} " " ${INSTANCE_ID} " 1 5 1000 true ;
4953 ;;
5054 latency-quick)
51- bigtable /benchmarks/apply_read_latency_benchmark ${PROJECT_ID} ${INSTANCE_ID} 1 5 1000 true ;
55+ " ${BTDIR} /benchmarks/apply_read_latency_benchmark" " ${PROJECT_ID} " " ${INSTANCE_ID} " 1 5 1000 true ;
5256 ;;
5357 throughput-quick)
54- bigtable /benchmarks/apply_read_latency_benchmark ${PROJECT_ID} ${INSTANCE_ID} 1 5 1000 true ;
58+ " ${BTDIR} /benchmarks/apply_read_latency_benchmark" " ${PROJECT_ID} " " ${INSTANCE_ID} " 1 5 1000 true ;
5559 ;;
5660 scan-quick)
57- bigtable /benchmarks/scan_throughput_benchmark ${PROJECT_ID} ${INSTANCE_ID} 1 5 1000 true ;
61+ " ${BTDIR} /benchmarks/scan_throughput_benchmark" " ${PROJECT_ID} " " ${INSTANCE_ID} " 1 5 1000 true ;
5862 ;;
5963 * )
6064 echo " Unknown benchmark type"
0 commit comments