Eric Fiselier
daa8a67aa5
add C++03 test and update README
2015-03-18 16:34:43 -04:00
Eric Fiselier
38066e8bdc
Add variadic macro for BENCHMARK_TEMPLATE in c++11 and beyond.
2015-03-18 14:50:50 -04:00
Eric Fiselier
01bba479ac
Remove use of reserved names in benchmark macros
2015-03-18 14:50:16 -04:00
Eric Fiselier
a6a90ec6b8
Revert "Add BENCHMARK_TEMPLATE1 macro"
...
I didn't mean to commit this to master.
This reverts commit b7d03ac4f5
.
2015-03-18 14:43:08 -04:00
Eric Fiselier
b7d03ac4f5
Add BENCHMARK_TEMPLATE1 macro
2015-03-18 14:42:35 -04:00
Eric Fiselier
92fc9b99b2
Add newline after every benchmark to improve readability of the json output.
2015-03-18 12:09:18 -04:00
Eric
ec0c725a33
Merge pull request #100 from google/json_reporter
...
Add JSON Reporter
2015-03-18 10:21:25 -04:00
Eric Fiselier
6429348e0d
address review comments and fix array type declaration
2015-03-18 00:23:43 -04:00
Eric Fiselier
ffb67dcabf
address review comments
2015-03-17 18:42:41 -04:00
Eric Fiselier
f65da9d581
add json reporter
2015-03-17 18:18:06 -04:00
Eric
23861178a7
Merge pull request #99 from google/reporter_api_change
...
Apply reporter interface changes.
2015-03-17 16:35:39 -04:00
Eric Fiselier
20f1c0e2a8
Apply reporter interface changes. Make report methods non-const and add a Finalize method.
2015-03-17 16:16:36 -04:00
Eric
b260cf7698
Merge pull request #98 from google/reporter_change
...
move reporter internals in both headers and source
2015-03-17 16:09:53 -04:00
Eric Fiselier
e45252e6f5
move ConsoleReporter out of internal namespace
2015-03-17 14:15:16 -04:00
Eric Fiselier
d71660227b
fix minimal_benchmark.h include
2015-03-17 14:02:02 -04:00
Eric Fiselier
8e72846da4
rename minimal_benchmark.h and fix recursive include in benchmark_api.h
2015-03-17 14:01:04 -04:00
Eric Fiselier
df904a1980
add include to minimal_benchmark.h
2015-03-17 13:58:25 -04:00
Eric Fiselier
35f9de71ee
move to using C headers in minimal_benchmark.h to prevent getting any C++ STL headers
2015-03-17 13:51:04 -04:00
Eric Fiselier
ef79d0af9f
move basic_test over to minimal benchmark
2015-03-17 13:48:33 -04:00
Eric Fiselier
4242f2f1d7
move reporter internals in both headers and source
2015-03-17 13:46:16 -04:00
Eric Fiselier
279e502a05
add test for benchmark with two template parameters
2015-03-17 13:32:20 -04:00
Eric Fiselier
7f2ef46255
merge master
2015-03-17 12:35:11 -04:00
Eric Fiselier
efe591015d
address review comments
2015-03-17 12:31:46 -04:00
Eric Fiselier
1924b30a6c
Merge null pointer warnings
2015-03-17 12:21:20 -04:00
Eric
957a3e339e
Merge pull request #92 from google/pimpl-benchmark
...
Pimpl the benchmark object to reduce dependencies on the STL.
2015-03-17 12:17:53 -04:00
Dominic Hamon
bdf4a5f4d2
Add reference to BENCHMARK_MAIN in README
2015-03-12 21:56:45 -07:00
Eric Fiselier
66bf7c8f71
add floating point comparison warnings
2015-03-12 20:27:29 -04:00
Eric Fiselier
f022d780eb
Enable int shortening warnings
2015-03-12 20:17:40 -04:00
Eric Fiselier
180981716b
replace instances of NULL with nullptr
2015-03-12 19:32:50 -04:00
Eric Fiselier
64ba272911
Enable zero as NULL warnings and fix all occurences
2015-03-12 19:16:06 -04:00
Eric Fiselier
47fa9ba1a3
merge
2015-03-12 18:56:36 -04:00
Eric Fiselier
19464f7dab
Fix includes in benchmark.h
2015-03-12 18:56:07 -04:00
Eric Fiselier
2b34b5d937
remove unneeded includes
2015-03-12 18:45:52 -04:00
Eric Fiselier
937987b63d
pimpl benchmark
2015-03-12 18:40:34 -04:00
Eric Fiselier
7a767012f1
Adopt new benchmark timing internals.
...
This patch adopts a new internal structure for how timings are performed.
Currently every iteration of a benchmark checks to see if it has been running
for an appropriate amount of time. Checking the clock introduces noise into
the timings and this can cause inconsistent output from each benchmark.
Now every iteration of a benchmark only checks an iteration count to see if it
should stop running. The iteration count is determined before hand by testing
the benchmark on a series of increasing iteration counts until a suitable count
is found. This increases the amount of time it takes to run the actual benchmarks
but it also greatly increases the accuracy of the results.
This patch introduces some breaking changes. The notable breaking changes are:
1. Benchmarks run on multiple threads no generate a report per thread. Instead
only a single report is generated.
2. ::benchmark::UseRealTime() was removed and replaced with State::UseRealTime().
2015-03-12 18:03:33 -04:00
Eric
7c6a7e3084
Merge pull request #90 from google/userealtime
...
Enable UseRealTime and fix documentation for SetLabel.
2015-03-11 13:30:28 -04:00
Dominic Hamon
d68127d8ad
Enable UseRealTime and fix documentation for SetLabel.
...
Fixes #89
UseRealTime was defined in the internal namespace by mistake.
Similarly, documentation suggested that benchmark::SetLabel should be
used to set a label, and a function was declared but not defined, while
actually the call should be 'state.SetLabel'.
2015-03-11 09:47:15 -07:00
Eric Fiselier
e975efdb7a
remove third_party directory. update test args
2015-03-10 14:38:45 -04:00
Eric
e2c795520c
Merge pull request #87 from google/filter_test
...
Add filter test, remove re test, and googletest deps
2015-03-10 14:32:58 -04:00
Dominic Hamon
3b40f0a7a3
Add filter test, remove re test, and googletest deps
2015-03-09 20:30:14 -07:00
Eric
522a58916a
Merge pull request #85 from google/upgrade-step3
...
Step three towards moving timer changes.
2015-03-09 18:49:52 -04:00
Eric Fiselier
75686a8f22
remove forward declarations
2015-03-09 18:00:04 -04:00
Eric
4b3bbe343a
Merge pull request #84 from google/upgrade-step2
...
Step two towards merging timer changes.
2015-03-09 16:39:03 -04:00
Eric Fiselier
60e26b7022
fix missing newline and header guard name
2015-03-09 16:18:10 -04:00
Eric Fiselier
5cfd6bcc14
update more copyright
2015-03-09 16:15:05 -04:00
Eric Fiselier
8f5cd9760f
Merge branch 'upgrade-step2' into upgrade-step3
2015-03-09 16:03:06 -04:00
Eric Fiselier
d20cdf19ca
address comments
2015-03-09 15:48:51 -04:00
Eric Fiselier
e60561a779
Force static initialization of walltime.
2015-03-09 14:56:47 -04:00
Eric Fiselier
8cf7b18ae4
Merge branch 'master' into upgrade-step2
2015-03-09 14:49:00 -04:00
Eric
61f05062e8
Merge pull request #81 from google/upgrade-step1
...
Step one towards merging timer changes.
2015-03-09 14:48:32 -04:00