Commit 06c1fdbd by Dominic Hamon

Update documentation and remove 'Threads' until threadedness works

parent 80162cab
...@@ -21,14 +21,14 @@ BENCHMARK(BM_StringCopy); ...@@ -21,14 +21,14 @@ BENCHMARK(BM_StringCopy);
// Augment the main() program to invoke benchmarks if specified // Augment the main() program to invoke benchmarks if specified
// via the --benchmarks command line flag. E.g., // via the --benchmarks command line flag. E.g.,
// my_unittest --benchmarks=all // my_unittest --benchmark_filter=all
// my_unittest --benchmarks=BM_StringCreation // my_unittest --benchmark_filter=BM_StringCreation
// my_unittest --benchmarks=String // my_unittest --benchmark_filter=String
// my_unittest --benchmarks='Copy|Creation' // my_unittest --benchmark_filter='Copy|Creation'
int main(int argc, char** argv) { int main(int argc, char** argv) {
Initialize(&argc, argv); benchmark::Initialize(&argc, argv);
benchmark::RunSpecifiedBenchmarks();
RunSpecifiedBenchmarks(); return 0;
} }
// Sometimes a family of microbenchmarks can be implemented with // Sometimes a family of microbenchmarks can be implemented with
...@@ -345,7 +345,8 @@ class Benchmark { ...@@ -345,7 +345,8 @@ class Benchmark {
// of some piece of code. // of some piece of code.
// Run one instance of this benchmark concurrently in t threads. // 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]. // Pick a set of values T from [min_threads,max_threads].
// min_threads and max_threads are always included in T. Run this // min_threads and max_threads are always included in T. Run this
...@@ -364,8 +365,8 @@ class Benchmark { ...@@ -364,8 +365,8 @@ class Benchmark {
// Equivalent to ThreadRange(NumCPUs(), NumCPUs()) // Equivalent to ThreadRange(NumCPUs(), NumCPUs())
Benchmark* ThreadPerCpu(); Benchmark* ThreadPerCpu();
// TODO(dominich): Control whether or not real-time is used for this benchmark // TODO(dominic): Control whether or not real-time is used for this benchmark
// TODO(dominich): Control the default number of iterations // TODO(dominic): Control the default number of iterations
// ------------------------------- // -------------------------------
// Following methods are not useful for clients // Following methods are not useful for clients
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment