Commit Graph

574 Commits

Author SHA1 Message Date
Kai Wolf
cded70a166 Add optional ms time unit for console reporter
Some benchmarks may run a few milliseconds which makes it kind of hard to visually compare, since the currently only available nanoseconds numbers can get very large in this case. Therefore this commit adds an optional command line flag --benchmark_time_unit which lets the user choose between ns and ms time units for displaying the mean execution time.
2016-03-24 22:18:55 +01:00
Dominic Hamon
b2e7340875 Merge pull request #187 from insertinterestingnamehere/libcpp_include_fix
Fix missing include in map_test.cc
2016-02-26 02:39:44 +01:00
Ian Henriksen
0dca953b13 Include cstdlib in map_test to make sure std::rand is available when
building with libc++.
2016-02-24 12:31:31 -07:00
Dominic Hamon
e4ad1afa1f Merge pull request #186 from amin-jabri/multithreaded_Fixture_TearDown
Pass const State to Fixture::TearDown. Fix memory leak in fixture_test
2016-02-24 16:46:44 +01:00
Mohamed Amin JABRI
53aca9bc71 Pass const State to Fixture::TearDown. Fix memory leak in fixture_test 2016-02-24 17:36:34 +09:00
Dominic Hamon
c5b80ff1ac Merge pull request #184 from KindDragon/patch-1
Format json in README.md
2016-02-17 11:45:59 +01:00
Arkady Shapkin
8da907c2c2 Update README.md 2016-02-16 23:29:24 +03:00
Dominic Hamon
31e71be77c Merge pull request #181 from google/map_test
Pass const state to Fixture::SetUp. Add map_test.
2016-02-16 02:08:29 -08:00
Dominic Hamon
7fd3fa8e3c Merge pull request #182 from buchgr/state_threads
Add number of threads to State.
2016-02-16 02:08:02 -08:00
Jakob Buchgraber
007efee751 Add number of threads to State.
Having access to the thread count from within a benchmark is useful,
for when one wants to distribute a workload dynamically among the
benchmarks running in parallel e.g when using ThreadRange() or
ThreadPerCpu().
2016-02-15 21:39:15 +01:00
Dominic Hamon
53068f974c Pass const state to Fixture::SetUp. Add map_test. 2016-02-15 03:04:19 -08:00
Dominic Hamon
bdb9f697d7 Merge pull request #180 from google/release
Add section on optimisations to README
2016-02-14 09:29:40 -08:00
Dominic Hamon
211f23ee13 Add section on optimisations to README 2016-02-14 09:28:10 -08:00
Dominic Hamon
af489cd4a3 Merge pull request #176 from enh/cycle-timer-aarch64
Add aarch64 support to src/cycleclock.h.
2016-02-13 13:05:16 -08:00
Dominic Hamon
cff1541b0c Merge pull request #177 from enh/cpuinfo-arm
Fix ARM /proc/cpuinfo parsing.
2016-02-13 13:05:09 -08:00
Dominic Hamon
1c4df750c4 Merge pull request #175 from KindDragon/master
Support MSVC on appveyor
2016-02-13 13:04:57 -08:00
Arkadiy Shapkin
9e37d69b23 Support MSVC on appveyor 2016-02-12 23:12:29 +03:00
Elliott Hughes
930d3af052 Fix ARM /proc/cpuinfo parsing.
Also fix related warning message typos.
2016-02-10 16:20:05 -08:00
Elliott Hughes
d9630aee88 Add aarch64 support to src/cycleclock.h.
From google3's base/cycleclock.
2016-02-10 15:48:27 -08:00
Alastair Murray
a574110048 Close a memory leak in configuration code
This was causing configuration failures on address sanitizer builds.
2016-02-09 13:08:56 +00:00
Dominic Hamon
cd525ae85d Merge pull request #171 from eliben/update-doc-userealtime
Update README to mention UseRealTime for wallclock time measurements.
2015-12-30 10:22:39 -08:00
Eli Bendersky
c7ab1b987b Update README to mention UseRealTime for wallclock time measurements.
Also adding a use case in the API header.

Fixes #170
2015-12-30 06:01:19 -08:00
Eric Fiselier
f662e8be5b Rename OS_MACOSX macro to new name BENCHMARK_OS_MACOSX. Fix #169 2015-12-14 15:02:30 -07:00
Dominic Hamon
0a1f4849a6 Merge pull request #166 from disconnect3d/master
Fixes #165: CustomArguments ret type in README
2015-11-30 09:50:29 -08:00
Dominik Czarnota
d2917bcded Fixes #165: CustomArguments ret type in README
* adds myself to AUTHORS/CONTRIBUTORS
2015-11-30 16:15:00 +01:00
Eric
475fc83019 Merge pull request #162 from RYOBG/add-cstdio
Fixes #159: Add inclusion of cstdio to files using stdout, printf and etc.
2015-11-06 11:37:50 -10:00
ryobg
13a67d20e6 Add myself to AUTHORS and CONTRIBUTORS as requested wrt Fix #159. 2015-11-06 20:10:50 +02:00
ryobg
a863aead13 Fixes #159: Add inclusion of cstdio to files using stdout, vprintf, printf and etc. 2015-11-06 11:07:26 +02:00
Dominic Hamon
4499e8e415 Fixes #161 2015-11-05 09:53:08 -08:00
Dominic Hamon
7c8d8c9dd7 Merge pull request #157 from guanqun/fix-static-cast
add static_cast to get rid of warnings for intel compiler on linux platform
2015-10-29 08:22:31 -07:00
guanqun
65cd2bac6c add static_cast to get rid of warnings for intel compiler on linux platform 2015-10-25 20:43:27 +08:00
Dominic Hamon
87ab54ad6a Merge pull request #156 from Zbyl/fix-getgitversion
Fix get_git_version to use GIT_EXECUTABLE.
2015-10-19 10:06:44 -07:00
Zbigniew Skowron
cd2e633fe5 Fix get_git_version to use GIT_EXECUTABLE.
get_git_version CMake function uses 'git' command directly, instead of
GIT_EXECUTABLE variable. This causes CMake errors while generating
project files in environments, where 'git' command is not present
in PATH.
2015-10-18 02:13:37 +02:00
Dominic Hamon
559c71d840 Added IRC channel to README.md 2015-10-13 12:02:08 -07:00
Dominic Hamon
9b84ead0fb Merge pull request #148 from DiracResearch/cmake-git-fix
Fixes #144  CMake fails without Git
2015-10-12 09:55:02 -07:00
Dominic Hamon
90e7cf000e Update macro names in comments. 2015-10-12 09:50:01 -07:00
Dominic Hamon
3c83ed5b47 Merge pull request #149 from DiracResearch/android-fix
Android fix
2015-10-12 09:16:25 -07:00
Anton Danielsson
8c71c307ac Fixed OS macros changed in previous pull request. 2015-10-09 09:09:14 +02:00
Anton Danielsson
a2f2a28b31 Changed date format to ISO 8601. 2015-10-09 09:05:19 +02:00
Anton Danielsson
032c190c4a Removed newline. 2015-10-09 09:00:42 +02:00
Anton Danielsson
7e9800e78a Added a comment why std::vsnprintf is not used. 2015-10-09 08:47:37 +02:00
Anton Danielsson
c8f4690fd4 Sorted include of headers. 2015-10-09 08:47:36 +02:00
Anton Danielsson
6abd53777b Use stringstream instead of atoi to avoid sign error.
The sane thing here would be to use std::stoul but this is not available in the android-ndk...
2015-10-09 08:47:36 +02:00
Anton Danielsson
df0df4aba9 Fixed tests so they build on android.
- Added missing header to test/benchmark_test.cc
- Changed std::stoul to std::atol in test/filter_test.cc because of a
  limitation in the android-ndk (http://stackoverflow.com/questions/17950814/how-to-use-stdstoul-and-stdstoull-in-android)
2015-10-09 08:47:35 +02:00
Anton Danielsson
0d35f5f68a Only include "sys/sysctl.h" if it is needed.
sys/sysctl.h is not available in the android-ndk.
2015-10-09 08:47:34 +02:00
Anton Danielsson
c1e03a4b58 Changed "std::vsnprintf" to "vsnprintf" to be able to build with the android-ndk. 2015-10-09 08:47:34 +02:00
Anton Danielsson
aecd746691 Added include of cstdlib needed for strtol, strtod and getenv. 2015-10-09 08:47:33 +02:00
Dominic Hamon
f7022075e0 Merge pull request #152 from mdavezac/master
Fixes compilation issue on Macs
2015-10-08 11:22:28 -07:00
Mayeul d'Avezac
da80193de9 Fixes compilation issue on Macs
ba141ac0d9 renamed OS_MACOSX -> BENCHMARK_OS_MACOSX,
except for an include guard in src/cycleclock.h
2015-10-08 18:35:06 +01:00
Dominic Hamon
e2327733e6 Merge pull request #150 from DiracResearch/visual-studio-warnings-fix
Visual studio warnings fix
2015-10-08 10:06:01 -07:00