1. 09 Apr, 2019 2 commits
  2. 08 Apr, 2019 1 commit
  3. 05 Apr, 2019 1 commit
    • Silence CMake Policy 0063 warning (#790) · 3bc802e4
      Joseph Loser authored
      Summary:
      - When google benchmark is used as a submodule in a parent projects
        whose min CMake version is 3.3.2 or later, the google benchmark
        `CMakeLists.txt` triggers a warning regarding CMake policy 0063:
      
      ```
      CMake Warning (dev) at tests/googlebenchmark/src/CMakeLists.txt:19 (add_library):
        Policy CMP0063 is not set: Honor visibility properties for all target
        types.  Run "cmake --help-policy CMP0063" for policy details.  Use the
        cmake_policy command to set the policy and suppress this warning.
      
        Target "benchmark" of type "STATIC_LIBRARY" has the following visibility
        properties set for CXX:
      
          CXX_VISIBILITY_PRESET
          VISIBILITY_INLINES_HIDDEN
      
        For compatibility CMake is not honoring them for this target.
      This warning is for project developers.  Use -Wno-dev to suppress it.
      ```
      
      - Set CMake Policy 0063 to NEW if the policy is available. This will not
        affect parent projects who include benchmark but do not have a CMake min
        version of 3.3.2 or later, i.e. when this policy is introduced.
  4. 28 Mar, 2019 2 commits
  5. 26 Mar, 2019 2 commits
    • Negative ranges #762 (#787) · e3666568
      Daniel Harvey authored
      * Add FIXME in multiple_ranges_test.cc
      
      * Improve handling of large bounds in AddRange.
      
      Due to breaking the loop too early, AddRange
      would miss a final multplier of 'mult' that
      was within the numeric range of T.
      
      * Enable negative values for Range argument
      
      Fixes #762.
      
      * Try to fix build of benchmark_gtest
      
      * Try some more to fix build
      
      * Attempt to fix format macros
      
      * Attempt to resolve format errors for mingw32
      
      * Review feedback
      
      Put unit tests in benchmark::internal namespace
      
      Fix error reporting in multiple_ranges_test.cc
    • [JSON] add threads and repetitions to the json output (#748) · 478eafa3
      BaaMeow authored
      * [JSON] add threads and repetitions to the json output, for better ide…
      [Tests] explicitly check for thread == 1
      [Tests] specifically mark all repetition checks
      [JSON] add repetition_index reporting, but only for non-aggregates (i…
      
      * [Formatting] Be very, very explicit about pointer alignment so clang-format can not put pointers/references on the wrong side of arguments.
      [Benchmark::Run] Make sure to use explanatory sentinel variable rather than a magic number.
      
      * Do not pass redundant information
  6. 19 Mar, 2019 1 commit
  7. 17 Mar, 2019 2 commits
    • Travis-ci: fix clang+libc++ build (#783) · 5acb0f05
      Roman Lebedev authored
      It broke because the libc++ is being built as part of *this*
      build, with old gcc+libstdc++ (4.8?), but LLVM is preparing
      to switch to C++14, and gcc+libstdc++ <5 are soft-deprecated.
      
      Just the gcc update doesn't cut it, clang still uses old libstdc++.
    • BENCHMARK_CAPTURE() and Complexity() - naming problem (#761) · f6e96861
      Daniel Harvey authored
      Created BenchmarkName class which holds the full benchmark
      name and allows specifying and retrieving different components
      of the name (e.g. ARGS, THREADS etc.)
      
      Fixes #730.
  8. 06 Mar, 2019 2 commits
  9. 28 Feb, 2019 1 commit
  10. 19 Feb, 2019 2 commits
  11. 04 Feb, 2019 1 commit
  12. 01 Feb, 2019 1 commit
  13. 15 Jan, 2019 1 commit
  14. 13 Jan, 2019 1 commit
  15. 03 Jan, 2019 1 commit
  16. 30 Dec, 2018 1 commit
  17. 14 Dec, 2018 1 commit
    • Print at least three significant digits for times. (#701) · 4528c76b
      Eric authored
      Some benchmarks are particularly sensitive and they run in less than
      a nanosecond. In order for the console reporter to provide meaningful
      output for such benchmarks it needs to be able to display the times
      using more resolution than a single nanosecond.
      
      This patch changes the console reporter to print at least three
      significant digits for all results.
      
      Unlike the initial attempt, this patch does not align the decimal point.
  18. 13 Dec, 2018 2 commits
  19. 11 Dec, 2018 1 commit
    • #722 Adding Host Name in Reporting (#733) · 47a5f77d
      Jatin Chaudhary authored
      * Adding Host Name and test
      
      * Addressing Review Comments
      
      * Adding Test for JSON Reporter
      
      * Adding HOST_NAME_MAX for MacOS systems
      
      * Adding Explaination for MacOS HOST_NAME_MAX Addition
      
      * Addressing Peer Review Comments
      
      * Adding codecvt in windows header guard
      
      * Changing name SystemInfo and adding empty message incase host name fetch fails
      
      * Adding Comment on Struct SystemInfo
  20. 10 Dec, 2018 2 commits
  21. 07 Dec, 2018 1 commit
  22. 30 Nov, 2018 1 commit
    • Remove use of std::tmpnam. (#734) · eafa34a5
      Eric authored
      std::tmpnam is deprecated and its use is discouraged. For our purposes
      in the tests, we really just need a file name which is unlikely to
      exist.
      
      This patch converts the tests to using a dummy random file name
      generator, which should hopefully avoid name conflicts.
  23. 28 Nov, 2018 1 commit
  24. 27 Nov, 2018 1 commit
  25. 26 Nov, 2018 1 commit
  26. 22 Nov, 2018 1 commit
  27. 13 Nov, 2018 3 commits
  28. 02 Nov, 2018 1 commit
  29. 21 Oct, 2018 1 commit
  30. 18 Oct, 2018 1 commit
    • Aggregates: use non-aggregate count as iteration count. (#706) · 507c06e6
      Roman Lebedev authored
      It is incorrect to say that an aggregate is computed over
      run's iterations, because those iterations already got averaged.
      Similarly, if there are N repetitions with 1 iterations each,
      an aggregate will be computed over N measurements, not 1.
      Thus it is best to simply use the count of separate reports.
      
      Fixes #586.