Movatterモバイル変換


[0]ホーム

URL:


benchmarks

commandmodule
v0.1.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2025 License:Apache-2.0Imports:17Imported by:0

Details

Repository

github.com/googleapis/google-cloud-go

Links

README

Spanner Benchmarking

This module supports running performance benchmarking in Go againstProduction andCloud devel environments.

It supports stale reads and queries.

Commands

go run spanner/benchmarks/benchmarks.go <option1> <value1> <option2> <value2> ...

Please look at theConfigurations section for allowed options and values.

Environmental variables

Environment VariableDescriptionPossible values
SPANNER_CLIENT_BENCHMARK_GOOGLE_CLOUD_PROJECTTo configure project id of the spanner instanceany valid project ID
SPANNER_CLIENT_BENCHMARK_SPANNER_INSTANCETo configure instance id of the spanner instanceany valid instance ID in the same project
SPANNER_CLIENT_BENCHMARK_SPANNER_DATABASETo configure database name in the spanner instanceany valid database ID in the same instance
SPANNER_CLIENT_BENCHMARK_CLOUD_ENVIRONMENTTo configure spanner environmentPRODUCTION, DEVEL

Configurations

ConfigDescriptionShort OptionLong OptionDefault
Warm up timeTotal warm up time before running
actual benchmarking
-wu-warmUpTime7 mins
Execution timeTotal execution time of benchmarking-et-executionTime30 mins
Wait between requestsTotal wait time between two requests.
After executing a request script will wait
for sometime before starting the next request.
Usually it will wait 2X time of configured value.
-wbr-waitBetweenRequests5 ms
StalenessTotal Staleness for Reads and Queries-st-staleness15 secs
Transaction TypeTransaction type of benchmarking, read or query.. etcNA-transactionTyperead
Traces EnabledTo decide if traces should be enabled or not-te-tracesEnabledfalse
Disable Native MetricsTo decide if built-in metrics should be disabled-dnm-disableNativeMetricsfalse
Trace Sampling FractionTo configuring trace sampling fraction. 0 - No sampling, >= 1 - Always sample-tsf-traceSamplingFraction0.5

Other configurations

To enable some application specific configurations, you can reference the following table.

DescriptionEnvironment variable
Enabling multiplex sessionGOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS=true
Enabling directpathGOOGLE_SPANNER_ENABLE_DIRECT_ACCESS=true

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp