Benchmarking#
The ovstage C package and the Python wheel include benchmark.ovstage, a
Google Benchmark executable that measures
ovstage operations through the public C API.
Package |
Location |
|---|---|
C package ( |
|
Python wheel |
|
benchmark.ovstage ships for Linux x86_64 and Windows x86_64. It is not included for
Linux aarch64 at this time.
In the commands below, <ovstage-package> is the extracted C package or, for the wheel,
the ovstage directory under site-packages.
Running#
For OVStage 0.4.0 on Linux, add the package’s bin/plugins directory to
LD_LIBRARY_PATH before running the benchmark. Its library search path does not
find the bundled USD library automatically; without this workaround, startup fails
with libov_25.11usd_ms.so: cannot open shared object file.
Run this setup in the shell where you will run the benchmark commands below, replacing the path with your package location:
ovstage_package="/absolute/path/to/ovstage-package"
export LD_LIBRARY_PATH="$ovstage_package/bin/plugins${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
"$ovstage_package/bin/benchmark.ovstage" --benchmark_list_tests
On Windows, put the package bin\, bin\plugins\ and each immediate subdirectory of
bin\plugins\ on PATH first. ovstage.dll depends on libraries in the plugin
directories, and without them on PATH the executable exits before printing anything:
$pluginDirs = Get-ChildItem -Directory "<ovstage-package>\bin\plugins" | ForEach-Object { $_.FullName }
$env:PATH = (@("<ovstage-package>\bin", "<ovstage-package>\bin\plugins") + $pluginDirs + $env:PATH) -join ";"
benchmark.ovstage.exe --benchmark_list_tests
Benchmarks with Gpu in their name use CUDA source tensors and need a CUDA-capable GPU.
Selecting and Running Benchmarks#
benchmark.ovstage accepts the standard Google Benchmark command-line options. The most
useful are:
Option |
Effect |
|---|---|
|
Print every benchmark instance without running it. |
|
Run only the instances whose names match the regular expression. A leading |
|
Run each instance for a single iteration, to check that it runs. |
|
Repeat each instance |
|
Also write the results to a file. |
For example, to run one family for a single iteration:
<ovstage-package>/bin/benchmark.ovstage --benchmark_filter='^BM_PathDict_CreateDestroyChurn(/|$)' --benchmark_dry_run=true
Benchmark Names#
Each name is a family followed by its parameters, for example
BM_OVStage_LargeLoadedStage_SparseUpdate_AllFloor/stage_prims:1000000/updated_prims:500/....
The families fall into three groups:
Prefix |
Measures |
|---|---|
|
Individual operations: writes, reads, queries, map and unmap, cloning, and concurrent use. |
|
Transform workloads modeled on Isaac Lab simulation steps. |
|
Path dictionary operations. |
To run every benchmark except the Isaac Lab workloads, use
--benchmark_filter=-BM_OVStage_IsaacLab_.