Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
9c261681
Commit
9c261681
authored
Sep 05, 2016
by
Eric Fiselier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document --benchmark_filter. Thanks to NAThompson for the original patch
parent
72be9523
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
README.md
README.md
+18
-0
No files found.
README.md
View file @
9c261681
...
@@ -462,6 +462,24 @@ static void BM_test(benchmark::State& state) {
...
@@ -462,6 +462,24 @@ static void BM_test(benchmark::State& state) {
}
}
```
```
## Running a subset of the benchmarks
The
`--benchmark_filter=<regex>`
option can be used to only run the benchmarks
which match the specified
`<regex>`
. For example:
```
bash
$
./run_benchmarks.x
--benchmark_filter
=
BM_memcpy/32
Run on
(
1 X 2300 MHz CPU
)
2016-06-25 19:34:24
Benchmark Time CPU Iterations
----------------------------------------------------
BM_memcpy/32 11 ns 11 ns 79545455
BM_memcpy/32k 2181 ns 2185 ns 324074
BM_memcpy/32 12 ns 12 ns 54687500
BM_memcpy/32k 1834 ns 1837 ns 357143
```
## Output Formats
## Output Formats
The library supports multiple output formats. Use the
The library supports multiple output formats. Use the
`--benchmark_format=<console|json|csv>`
flag to set the format type.
`console`
`--benchmark_format=<console|json|csv>`
flag to set the format type.
`console`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment