-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional ts benchmarks which read/write multiple tensorstores c…
…oncurrently. Decompose a few functions so that profile cost is more visible. * multi_genspec generates arrays for the multi tensorstore test. * multi_read_benchmark reads multiple tensorstores from a "base" tensorstore. * multi_write_benchmark writes multiple tensorstores from a "base" tensorstore. Step 1: Generate a spec/config file for shards. ``` bazel run tensorstore/internal/benchmark/multi_genspec \ --base_spec='{"driver": "zarr3", "kvstore": { "driver": "ocdbt", "base": "file:///tmp/checkpoint" } }' \ --config='[ { "name": "sub1", "shape": [1024, 1024], "chunks": [256, 256] } ]' > config.json ``` Step 2a: Run the write benchmark. ``` bazel run tensorstore/internal/benchmark/multi_write_benchmark \ --context_spec='{"file_io_concurrency": { "limit": 128 }}' \ --base_spec='{"driver": "zarr3", "kvstore": { "driver": "ocdbt", "base": "file:///tmp/checkpoint" } }' \ --write_config=config.json ``` Step 2b: Run the read benchmark. ``` bazel run tensorstore/internal/benchmark/multi_read_benchmark \ --context_spec='{"file_io_concurrency": { "limit": 128 }}' \ --repeat_reads=1000 \ --base_spec='{"driver": "zarr3", "kvstore": { "driver": "ocdbt", "base": "file:///tmp/checkpoint" } }' \ --read_config=config.json ``` PiperOrigin-RevId: 681493672 Change-Id: I4614686c673d9ac8a811e394cdf4abcc0246ced1
- Loading branch information
1 parent
d465a9c
commit 4d0196c
Showing
31 changed files
with
2,418 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.