- 10 Sep, 2020 2 commits
-
-
Dominic Hamon authored
* Initial version to try to run python bindings example * python indent issue in setup.py * better naming
-
Antoine Prouvost authored
* Bind Counter to Python * Bind State methods to Python * Bind state.counters to Python * Import _benchmark.Counter * Add Python example of state usage Co-authored-by:Dominic Hamon <dominichamon@users.noreply.github.com>
-
- 09 Sep, 2020 1 commit
-
-
Dominic Hamon authored
* Create pylint.yml * improve file matching * fix some pylint issues * run on PR and push (force on master only) * more pylint fixes * suppress noisy exit code and filter to fatals * add conan as a dep so the module is importable * fix lint error on unreachable branch
-
- 03 Sep, 2020 1 commit
-
-
Yesudeep Mangalapilly authored
Revert previous linker additions for FreeBSD as the problem is Bazel using /usr/bin/clang instead of /usr/bin/clang++ to link C++ code. (#1035)
-
- 28 Aug, 2020 1 commit
-
-
Yesudeep Mangalapilly authored
* Adds -lm linker flag for (Free|Open)BSD and uses github.com/bazelbuild/platforms for platform detection. * Prefer selects.with_or to select the linkopts. * @platforms appears to be implicitly available. @bazel_skylib would require updating every dependent repository. * Re-enable platforms package.
-
- 27 Aug, 2020 1 commit
-
-
Jeremy Ong authored
Fixes #974. The `cxx_feature_check` now has an additional optional argument which can be used to supply extra cmake flags to pass to the `try_compile` command. The `CMAKE_CXX_STANDARD=14` flag was determined to be the minimum flag necessary to correctly compile and run the regex feature checks when compiling with Clang under Windows (n.b. this does *not* refer to clang-cl, the frontend to the MSVC compiler). The additional flag is not enabled for any other compiler/platform tuple.
-
- 25 Aug, 2020 1 commit
-
-
Christian Wassermann authored
* Add CartesianProduct with associated test * Use CartesianProduct in Ranges to avoid code duplication * Add new cartesian_product_test to CMakeLists.txt * Update AUTHORS & CONTRIBUTORS * Rename CartesianProduct to ArgsProduct * Rename test & fixture accordingly * Add example for ArgsProduct to README
-
- 21 Aug, 2020 1 commit
-
-
Dominic Hamon authored
* ctest is now working * Update README * remove commented out lines * Tweaked docs Added note to use parallel and cleaned build config notes * Response to comments * revert all but the readme * make error message clearer * drop --parallel
-
- 19 Aug, 2020 1 commit
-
-
Adam Badura authored
Build instructions needlessly referred to make when CMake offers a command-line interface to abstract away from the specific build system. Furthermore, CMake offers command-line "tool mode" which performs basic filesystem operations. While the syntax is a bit more verbose than Linux commands it is platform-independent. Now the commands can be copy-pasted on both Linux and Windows and will just work. Finally, the Release build type is included in initial commands. A natural flow for a new-comer is to read and execute the commands and only then learn that one has to go back and redo them again this time with proper parameters. Now instead the parameters are only explained later but present already in the initial commands.
-
- 18 Aug, 2020 2 commits
-
-
Dominic Hamon authored
As noted in #995, this causes issues when the command line flag already starts with "benchmark_", which they all do. Not caught by tests as the test flags didn't start with "benchmark". Fixes #995
-
Dominic Hamon authored
First attempt at a non-travis/non appveyor CI solution
-
- 30 Jul, 2020 1 commit
-
-
Dominic Hamon authored
-
- 28 Jul, 2020 1 commit
-
-
Alexander Enaldiev authored
* JSONReporter: don't report on scaling if we didn't get it (#1005) * JSONReporter: fix due to review (std::pair<bool, bool> -> enum) * JSONReporter: scaling: fix the algo (due to review discussion) * benchmark.h: revert to old-fashioned enum's (C++03 compatibility); rreporter_output_test: let's skip scaling
-
- 09 Jul, 2020 2 commits
-
-
Chris Jones authored
-
Chris Jones authored
A few people have complained that `benchmark` is too generic. Also, add Python 3.8.
-
- 30 Jun, 2020 1 commit
-
-
Skye Wanderman-Milne authored
-
- 29 Jun, 2020 1 commit
-
-
Jonas Otto authored
* add requirements.txt for python tools * adds documentation for requirements.txt Adds installation instructions for python dependencies using pip and requirements.txt
-
- 25 Jun, 2020 1 commit
-
-
Jonas Otto authored
-
- 17 Jun, 2020 1 commit
-
-
Reid Paape authored
-
- 16 Jun, 2020 1 commit
-
-
Dominic Hamon authored
timers: silence format overflow warning
-
- 15 Jun, 2020 4 commits
-
-
Brian Wolfe authored
-
Brian Wolfe authored
-
Brian Wolfe authored
-
Brian Wolfe authored
* timestamp: use rfc3339-formatted timestamps in output Replace localized timestamps with machine-readable IETF RFC 3339 format timestamps. This is an attempt to make the output timestamps easily machine-readable. ISO8601 specifies standards for time interchange formats. IETF RFC 3339: https://tools.ietf.org/html/rfc3339 defines a subset of these for use in the internet. The general form for these timestamps is: YYYY-MM-DDTHH:mm:SS[+-]hhmm This replaces the localized time formats that are currently being used in the benchmark output to prioritize interchangeability and machine-readability. This might break existing programs that rely on the particular date-time format. This might also may make times less human readable. RFC3339 was intended to balance human readability and simplicity for machine readability, but it is primarily intended as an internal representation. * timers: remove utc string formatting We only ever need local time printing. Remove the UTC printing and cosnolidate the logic slightly. * timers: manually create rfc3339 string The C++ standard library does not output the time offset in RFC3339 format, it is missing the : between hours and minutes. VS does not appear to support timezone information by default. To avoid adding too much complexity to benchmark around timezone handling e.g. a full date library like https://github.com/HowardHinnant/date, we fall back to outputting GMT time with a -00:00 offset for those cases. * timers: use reentrant form for localtime_r & tmtime_r For non-windows, use the reentrant form for the time conversion functions. * timers: cleanup Use strtol instead of brittle moving characters around. * timers: only call strftime twice. Also size buffers to known maximum necessary size and name constants more appropriately. * timers: fix unused variable warning
-
- 09 Jun, 2020 1 commit
-
-
Dominic Hamon authored
-
- 08 Jun, 2020 4 commits
-
-
Dominic Hamon authored
-
Chris Jones authored
-
Dominic Hamon authored
-
Dominic Hamon authored
-
- 05 Jun, 2020 1 commit
-
-
Dominic Hamon authored
-
- 28 May, 2020 1 commit
-
-
Chris Jones authored
-
- 26 May, 2020 1 commit
-
-
Christian Clauss authored
* Use ==/!= to compare constant literals (str, bytes, int, float, tuple) Avoid Syntax Warning on Python 3.8: `3 is 3` # —> Syntax Warning * Delete mingw.py
-
- 06 May, 2020 1 commit
-
-
Chris Jones authored
* Add Python bindings. * Add license headers. * Change example to a test. * Add example usage to module docstring.
-
- 23 Apr, 2020 1 commit
-
-
Kai Wolf authored
* Add missing <cerrno> header This commit fixes a current build error on Android where 'errno' is an unidentified symbol due to a missing header * Update string_util.cc Conditionally adds <cerrno> if BENCHMARK_STL_ANDROID_GNUSTL is defined
-
- 17 Apr, 2020 1 commit
-
-
Luís Marques authored
-
- 14 Apr, 2020 1 commit
-
-
Keith Moyer authored
In a previous commit[1], diagnostic pragmas were used to avoid this warning. However, the incorrect warning flag was indicated, leaving the warning in place. -Wdeprecated is for deprecated features while -Wdeprecated-declarations for deprecated functions, variables, and types[2]. [1] c4084619 [2] https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
-
- 10 Apr, 2020 1 commit
-
-
Luís Marques authored
Fixes the following issues with the implementation of `cycleclock::Now`: - The RISC-V implementation wouldn't compile due to a typo; - Both the PPC and RISC-V implementation's asm statements lacked the volatile keyword. This resulted in the repeated read of the counter's high part being optimized away, so overflow wasn't handled at all. Multiple counter reads could also be misoptimized, especially in LTO scenarios. - Relied on the zero/sign-extension of inline asm operands, which isn't guaranteed to occur and differs between compilers, namely GCC and Clang. The PowerPC64 implementation was improved to do a single 64-bit read of the time-base counter. The RISC-V implementation was improved to do the overflow handing in assembly, since Clang would generate a branch, defeating the purpose of the non-branching counter reading approach.
-
- 06 Apr, 2020 1 commit
-
-
Dominic Hamon authored
* Fix type conversion warnings. Fixes #949 Tested locally (Linux/clang), but warnings are on MSVC so may differ. * Drop the ULP so the double test passes
-
- 30 Mar, 2020 1 commit
-
-
Konstantin Khlebnikov authored
Line "- /usr/local/bin:$PATH" is misformatted. It must be something like "- PATH=/usr/local/bin:$PATH". It seems something changed in tarvis-ci month ago and now this leads to: Setting environment variables from .travis.yml $ export PATH= Defailt PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin so already containts /usr/local/bin. Image "xcode8.3" contains macOS 10.12 (sierra) which has no bottles with precompiled gcc-7 in homebrew storage. Image "xcode9.4" is a current default with macOS 10.13 (high_sierra). Link: https://docs.travis-ci.com/user/reference/osx/ Link: https://formulae.brew.sh/formula/gcc@7Signed-off-by:
Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
-
- 16 Mar, 2020 1 commit
-
-
Roman Lebedev authored
This reverts commit 5ce2429a. Reverts https://github.com/google/benchmark/pull/923 Reopens https://github.com/google/benchmark/issues/922 Fixes https://github.com/google/benchmark/issues/928 Closes https://github.com/google/benchmark/pull/930 See discussion in https://github.com/google/benchmark/issues/928 this broke pkg-config support, since there we don't account for the suffix, nor is it trivial to do so.
-