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
06c1fdbd
Commit
06c1fdbd
authored
Dec 20, 2013
by
Dominic Hamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation and remove 'Threads' until threadedness works
parent
80162cab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
benchmark.h
include/benchmark/benchmark.h
+11
-10
No files found.
include/benchmark/benchmark.h
View file @
06c1fdbd
...
...
@@ -21,14 +21,14 @@ BENCHMARK(BM_StringCopy);
// Augment the main() program to invoke benchmarks if specified
// via the --benchmarks command line flag. E.g.,
// my_unittest --benchmark
s
=all
// my_unittest --benchmark
s
=BM_StringCreation
// my_unittest --benchmark
s
=String
// my_unittest --benchmark
s
='Copy|Creation'
// my_unittest --benchmark
_filter
=all
// my_unittest --benchmark
_filter
=BM_StringCreation
// my_unittest --benchmark
_filter
=String
// my_unittest --benchmark
_filter
='Copy|Creation'
int main(int argc, char** argv) {
Initialize(&argc, argv);
RunSpecifiedBenchmarks()
;
benchmark::
Initialize(&argc, argv);
benchmark::RunSpecifiedBenchmarks();
return 0
;
}
// Sometimes a family of microbenchmarks can be implemented with
...
...
@@ -345,7 +345,8 @@ class Benchmark {
// of some piece of code.
// Run one instance of this benchmark concurrently in t threads.
Benchmark
*
Threads
(
int
t
);
// TODO(dominic)
//Benchmark* Threads(int t);
// Pick a set of values T from [min_threads,max_threads].
// min_threads and max_threads are always included in T. Run this
...
...
@@ -364,8 +365,8 @@ class Benchmark {
// Equivalent to ThreadRange(NumCPUs(), NumCPUs())
Benchmark
*
ThreadPerCpu
();
// TODO(dominic
h
): Control whether or not real-time is used for this benchmark
// TODO(dominic
h
): Control the default number of iterations
// TODO(dominic): Control whether or not real-time is used for this benchmark
// TODO(dominic): Control the default number of iterations
// -------------------------------
// Following methods are not useful for clients
...
...
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