1. 12 Apr, 2021 1 commit
  2. 09 Apr, 2021 4 commits
    • Shrink the tz_offset size to 41. (#1110) · 07578d82
      Chris Lalancette authored
      When building with gcc TSan on, and in Debug mode, we see a warning
      like:
      
      benchmark/src/timers.cc: In function ‘std::string benchmark::LocalDateTimeString()’:
      src/timers.cc:241:15: warning: ‘char* strncat(char*, const char*, size_t)’ output may be truncated copying 108 bytes from a string of length 127 [-Wstringop-truncation]
        241 |   std::strncat(storage, tz_offset, sizeof(storage) - timestamp_len - 1);
            |   ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      While this is essentially a false positive (we never expect
      the number of bytes in tz_offset to be too large), the compiler can't
      actually tell that.  Shrink the size of tz_offset to a smaller, but still safe
      size to eliminate this warning.
      Signed-off-by: 's avatarChris Lalancette <clalancette@openrobotics.org>
    • fix minor typo · 5a77a6d8
      Dominic Hamon authored
    • fix minor typo · b8084e50
      Dominic Hamon authored
  3. 30 Mar, 2021 1 commit
    • Implement custom benchmark name (#1107) · 5e387e7d
      Tobias Schmidt authored
      * Implement custom benchmark name
      
      The benchmark's name can be changed using the Name() function
      which internally uses SetName().
      
      * Update AUTHORS and CONTRIBUTORS
      
      * Describe new feature in README
      
      * Move new name function up
      
      Fixes #1106
  4. 08 Mar, 2021 1 commit
  5. 05 Mar, 2021 2 commits
  6. 22 Feb, 2021 2 commits
  7. 14 Feb, 2021 1 commit
  8. 12 Feb, 2021 1 commit
  9. 05 Jan, 2021 1 commit
  10. 22 Dec, 2020 2 commits
  11. 21 Dec, 2020 1 commit
    • Add 'seconds' time unit (#1076) · 378ed8ff
      feserr authored
      Fixes #1075.
      
      * Add an option to report in seconds.
      
      * Reduce the time of the test.
      
      * Add CSV/JSON tests for new time reports.
  12. 26 Nov, 2020 2 commits
  13. 23 Nov, 2020 1 commit
  14. 19 Nov, 2020 1 commit
  15. 06 Nov, 2020 1 commit
  16. 03 Nov, 2020 1 commit
  17. 29 Oct, 2020 1 commit
  18. 21 Oct, 2020 1 commit
  19. 15 Oct, 2020 1 commit
  20. 12 Oct, 2020 1 commit
    • Add support for DragonFly BSD (#1058) · af72911f
      Michael Neumann authored
      Without this commit, compilation fails on DragonFly with the following message:
      
      ```
      /home/mneumann/Dev/benchmark.old/src/sysinfo.cc:446:2: error: #warning "HOST_NAME_MAX not defined. using 64" [-Werror=cpp]
      ^~~~~~~
      ```
      
      Also note that the sysctl is actually `hw.tsc_frequency` on DragonFly:
      
      ```
      $ sysctl hw.tsc_frequency
      hw.tsc_frequency: 3498984022
      ```
      
      Tested on:
      
      ```
      $ uname -a
      DragonFly box.localnet 5.9-DEVELOPMENT DragonFly v5.9.0.742.g4b29dd-DEVELOPMENT #5: Tue Aug 18 00:21:31 CEST 2020
      ```
  21. 29 Sep, 2020 1 commit
  22. 28 Sep, 2020 1 commit
  23. 21 Sep, 2020 1 commit
  24. 12 Sep, 2020 1 commit
  25. 11 Sep, 2020 1 commit
  26. 10 Sep, 2020 2 commits
  27. 09 Sep, 2020 1 commit
    • Create pylint.yml (#1039) · beb360d0
      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
  28. 03 Sep, 2020 1 commit
  29. 28 Aug, 2020 1 commit
  30. 27 Aug, 2020 1 commit
    • Fix Clang builds on Windows (#1021) · 01c0ab7c
      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.
  31. 25 Aug, 2020 1 commit
    • Add CartesianProduct with associated test (#1029) · 48579623
      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
  32. 21 Aug, 2020 1 commit
    • Ctest support (#1025) · 5c25ad3a
      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