diff options
author | PCMan <pcman.tw@gmail.com> | 2021-06-16 19:56:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 12:56:24 +0100 |
commit | c932169e76f8bcdbc36f3b1e910642d529f66268 (patch) | |
tree | 640bde32c49f254bc8c6b509160287deefe4f161 /bindings/python/google_benchmark/example.py | |
parent | 5b7518482c92df72dfdaf257beaf6e7175fefd9a (diff) | |
download | google-benchmark-c932169e76f8bcdbc36f3b1e910642d529f66268.tar.gz google-benchmark-c932169e76f8bcdbc36f3b1e910642d529f66268.zip |
Provide helpers to create integer lists for the given ranges. (#1179)
This can be used together with ArgsProduct() to allow multiple ranges
with different multipliers and mixing dense and sparse ranges.
Example:
BENCHMARK(MyTest)->ArgsProduct({
CreateRange(0, 1024, /*multi=*/32),
CreateRange(0, 100, /*multi=*/4),
CreateDenseRange(0, 4, /*step=*/1)
});
Co-authored-by: Jen-yee Hong <pcmantw@google.com>
Diffstat (limited to 'bindings/python/google_benchmark/example.py')
0 files changed, 0 insertions, 0 deletions