benchmark/src
Jesse Rosenstock 6dd50bb606 StatisticsMedian: Fix bug
Previously, this could return the wrong result when there
was an even number of elements.

There were two `nth_element` calls.  The second call could
change elements in `[center2, end])`, which was where
`center` pointed.  Therefore, `*center` sometimes had the
wrong value after the second `nth_element` call.

Rewrite to use `max_element` instead of the second call to
`nth_element`.  This avoids modifying the vector.
2023-08-24 16:05:09 +02:00
..
arraysize.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
benchmark_api_internal.cc Include the benchmark's family-name in State (#1511) 2023-01-10 16:48:17 +00:00
benchmark_api_internal.h Introduce warmup phase to BenchmarkRunner (#1130) (#1399) 2022-05-23 13:50:17 +01:00
benchmark_main.cc restore BENCHMARK_MAIN() (#1357) 2022-02-26 10:17:13 +00:00
benchmark_name.cc Fixed build issues on window (#1449) 2022-08-03 09:44:35 +01:00
benchmark_register.cc Convert uses of const char* to std::string (#1567) 2023-03-14 13:10:27 +00:00
benchmark_register.h Ensure we don't need benchmark installed to pass c++ feature checks (#1456) 2022-08-04 15:33:35 +01:00
benchmark_runner.cc Convert uses of const char* to std::string (#1567) 2023-03-14 13:10:27 +00:00
benchmark_runner.h Refactoring of PerfCounters infrastructure (#1559) 2023-03-07 10:27:52 +00:00
benchmark.cc State: Initialize counters with kAvgIteration in constructor (#1652) 2023-08-21 15:35:42 +01:00
check.cc Fixed build issues on window (#1449) 2022-08-03 09:44:35 +01:00
check.h Ensure we don't need benchmark installed to pass c++ feature checks (#1456) 2022-08-04 15:33:35 +01:00
CMakeLists.txt pfm: Use a more standard CMake approach for finding libpfm (#1628) 2023-07-10 17:46:34 +01:00
colorprint.cc Add more terminals with color support (#1621) 2023-07-04 16:13:55 +01:00
colorprint.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
commandlineflags.cc Fix Clang-Tidy warnings readability-else-after-return (#1528) 2023-01-16 12:28:48 +00:00
commandlineflags.h annotate and export public symbols (#1321) 2022-02-14 10:48:53 +00:00
complexity.cc clang-format Google on {src/,include/} (#1280) 2021-11-10 16:04:32 +00:00
complexity.h Fix typos found by codespell (#1519) 2023-01-10 12:25:32 +00:00
console_reporter.cc [FR] state.SkipWithMessage #963 (#1564) 2023-03-08 18:24:48 +00:00
counter.cc Custom user counters: add invert modifier. (#850) 2019-08-12 17:47:46 +03:00
counter.h update header guard to match style 2019-11-25 13:05:13 +00:00
csv_reporter.cc [FR] state.SkipWithMessage #963 (#1564) 2023-03-08 18:24:48 +00:00
cycleclock.h Fixing issue with ARM64EC and MSVC (#1514) 2023-02-06 15:58:14 +00:00
internal_macros.h Guard NOMINMAX to prevent redefinition error (#1581) (#1582) 2023-03-31 00:17:14 +03:00
json_reporter.cc Convert uses of const char* to std::string (#1567) 2023-03-14 13:10:27 +00:00
log.h remove old-style (C-style) casts (#1614) 2023-06-22 01:35:44 +03:00
mutex.h prefix macros to avoid clashes (#1186) 2021-06-24 18:21:59 +01:00
perf_counters.cc perf_counters: Initialize once only when needed (#1656) 2023-08-24 10:04:09 +01:00
perf_counters.h perf_counters: Initialize once only when needed (#1656) 2023-08-24 10:04:09 +01:00
re.h Fix a typo in regex choice (#1610) 2023-06-19 08:51:48 +01:00
reporter.cc Support for QuRT OS (Hexagon RTOS) (#1497) 2022-10-04 20:43:27 +01:00
statistics.cc StatisticsMedian: Fix bug 2023-08-24 16:05:09 +02:00
statistics.h Fix typos found by codespell (#1519) 2023-01-10 12:25:32 +00:00
string_util.cc bug: Inconsistent suffixes console reporter 1009 (#1631) 2023-08-01 08:47:09 +01:00
string_util.h bug: Inconsistent suffixes console reporter 1009 (#1631) 2023-08-01 08:47:09 +01:00
sysinfo.cc sysinfo.cc: Call getloadavg for Android API >= 29 (#1) (#1649) 2023-08-14 17:02:42 +01:00
thread_manager.h [FR] state.SkipWithMessage #963 (#1564) 2023-03-08 18:24:48 +00:00
thread_timer.h prefix macros to avoid clashes (#1186) 2021-06-24 18:21:59 +01:00
timers.cc Address warnings on NVIDIA nvc++ (#1573) 2023-03-13 12:34:12 +00:00
timers.h Make PauseTiming() and ResumeTiming() per thread. (#286) 2016-09-02 21:34:34 -06:00