benchmark/src
haih-g a6a738c1cc
Implementation of random interleaving. (#1105)
* Implementation of random interleaving. See
http://github.com/google/benchmark/issues/1051 for the feature requests.

Committer: Hai Huang (http://github.com/haih-g)

On branch fr-1051
Changes to be committed:
modified:   include/benchmark/benchmark.h
modified:   src/benchmark.cc
new file:   src/benchmark_adjust_repetitions.cc
new file:   src/benchmark_adjust_repetitions.h
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_api_internal.h
modified:   src/benchmark_register.cc
modified:   src/benchmark_runner.cc
modified:   src/benchmark_runner.h
modified:   test/CMakeLists.txt
new file:   test/benchmark_random_interleaving_gtest.cc

* Fix benchmark_random_interleaving_gtest.cc for fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark.cc
modified:   src/benchmark_runner.cc
modified:   test/benchmark_random_interleaving_gtest.cc

* Fix macos build for fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_api_internal.h
modified:   src/benchmark_runner.cc

* Fix macos and windows build for fr-1051.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_runner.cc

* Fix benchmark_random_interleaving_test.cc for macos and windows in fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   test/benchmark_random_interleaving_gtest.cc

* Fix int type benchmark_random_interleaving_gtest for macos in fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   test/benchmark_random_interleaving_gtest.cc

* Address dominichamon's comments 03/29 for fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark.cc
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_api_internal.h
modified:   test/benchmark_random_interleaving_gtest.cc

* Address dominichamon's comment on default min_time / repetitions for fr-1051.
Also change sentinel of random_interleaving_repetitions to -1. Hopefully it
fixes the failures on Windows.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark.cc
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_api_internal.h

* Fix windows test failures for fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_runner.cc

* Add license blurb for fr-1051.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_adjust_repetitions.cc
modified:   src/benchmark_adjust_repetitions.h

* Switch to std::shuffle() for fr-1105.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark.cc

* Change to 1e-9 in fr-1105

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_adjust_repetitions.cc

* Fix broken build caused by bad merge for fr-1105.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_runner.cc

* Fix build breakage for fr-1051.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark.cc
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_api_internal.h
modified:   src/benchmark_register.cc
modified:   src/benchmark_runner.cc

* Print out reports as they come in if random interleaving is disabled (fr-1051)

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark.cc

* size_t, int64_t --> int in benchmark_runner for fr-1051.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_runner.cc
modified:   src/benchmark_runner.h

* Address comments from dominichamon for fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark.cc
modified:   src/benchmark_adjust_repetitions.cc
modified:   src/benchmark_adjust_repetitions.h
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_api_internal.h
modified:   test/benchmark_random_interleaving_gtest.cc

* benchmar_indices --> size_t to make CI pass: fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark.cc

* Fix min_time not initialized issue for fr-1051.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_api_internal.h

* min_time --> MinTime in fr-1051.

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   src/benchmark_api_internal.cc
modified:   src/benchmark_api_internal.h
modified:   src/benchmark_runner.cc

* Add doc for random interleaving for fr-1051

Committer: Hai Huang <haih@google.com>

On branch fr-1051
Your branch is up to date with 'origin/fr-1051'.

Changes to be committed:
modified:   README.md
new file:   docs/random_interleaving.md

Co-authored-by: Dominic Hamon <dominichamon@users.noreply.github.com>
2021-05-20 17:09:16 +01:00
..
arraysize.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
benchmark_adjust_repetitions.cc Implementation of random interleaving. (#1105) 2021-05-20 17:09:16 +01:00
benchmark_adjust_repetitions.h Implementation of random interleaving. (#1105) 2021-05-20 17:09:16 +01:00
benchmark_api_internal.cc Implementation of random interleaving. (#1105) 2021-05-20 17:09:16 +01:00
benchmark_api_internal.h Implementation of random interleaving. (#1105) 2021-05-20 17:09:16 +01:00
benchmark_main.cc Add benchmark_main target. (#601) 2018-05-25 11:18:58 +01:00
benchmark_name.cc BENCHMARK_CAPTURE() and Complexity() - naming problem (#761) 2019-03-17 16:38:51 +03:00
benchmark_register.cc Refactor BenchmarkInstance (#1148) 2021-05-10 17:12:09 +01:00
benchmark_register.h Fix windows warning on type conversion (#1121) 2021-04-27 08:24:27 +01:00
benchmark_runner.cc Implementation of random interleaving. (#1105) 2021-05-20 17:09:16 +01:00
benchmark_runner.h Implementation of random interleaving. (#1105) 2021-05-20 17:09:16 +01:00
benchmark.cc Implementation of random interleaving. (#1105) 2021-05-20 17:09:16 +01:00
check.h (clang-)format all the things (#610) 2018-06-01 11:14:19 +01:00
CMakeLists.txt Support optional, user-directed collection of performance counters (#1114) 2021-04-28 09:25:29 +01:00
colorprint.cc [benchmark] Lowercase windows specific includes (#679) 2018-09-18 09:42:20 +01:00
colorprint.h Apply clang-format to all headers and source (#303) 2016-10-07 11:35:03 -07:00
commandlineflags.cc Add benchmark_context flag that allows per-run custom context. (#1127) 2021-05-04 14:36:11 +01:00
commandlineflags.h Add benchmark_context flag that allows per-run custom context. (#1127) 2021-05-04 14:36:11 +01:00
complexity.cc Iteration counts should be uint64_t globally. (#817) 2019-05-13 12:33:11 +03:00
complexity.h Drop Stat1, refactor statistics to be user-providable, add median. (#428) 2017-08-23 16:44:29 -07:00
console_reporter.cc Custom user counters: add invert modifier. (#850) 2019-08-12 17:47:46 +03: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 escape special chars in csv and json output. (#802) 2019-04-19 18:47:25 +01:00
cycleclock.h - add support for Elbrus 2000 (e2k) (#1091) 2021-02-14 17:45:57 +03:00
internal_macros.h Add support for z/OS XL compiler inline asm syntax (#1063) 2020-10-21 16:39:54 +01:00
json_reporter.cc Add API to benchmark allowing for custom context to be added (#1137) 2021-05-05 12:08:23 +01:00
log.h (clang-)format all the things (#610) 2018-06-01 11:14:19 +01:00
mutex.h Clean -Wreserved-identifier instances (#1143) 2021-05-06 20:31:14 +01:00
perf_counters.cc [PFM] Extend perf counter support to multi-threaded cases. (#1153) 2021-05-19 09:49:05 +01:00
perf_counters.h [PFM] Extend perf counter support to multi-threaded cases. (#1153) 2021-05-19 09:49:05 +01:00
re.h (clang-)format all the things (#610) 2018-06-01 11:14:19 +01:00
reporter.cc Add API to benchmark allowing for custom context to be added (#1137) 2021-05-05 12:08:23 +01:00
sleep.cc Nanosleep workaround for z/OS in sleep.cc (#1067) 2020-10-29 08:49:02 +00:00
sleep.h Replace int64_t usages with 'int' instead. (#359) 2017-03-27 18:32:12 -06:00
statistics.cc Use IterationCount in one more place 2019-05-13 22:42:18 +03:00
statistics.h Drop Stat1, refactor statistics to be user-providable, add median. (#428) 2017-08-23 16:44:29 -07:00
string_util.cc Fix StrSplit empty string case (#1142) 2021-05-06 19:12:36 +01:00
string_util.h Support optional, user-directed collection of performance counters (#1114) 2021-04-28 09:25:29 +01:00
sysinfo.cc [sysinfo] Fix CPU Frequency reading on AMD Ryzen CPU's (#1117) 2021-04-23 14:33:22 +03:00
thread_manager.h Make some functions const (#832) 2019-06-26 09:06:24 +01:00
thread_timer.h Make some functions const (#832) 2019-06-26 09:06:24 +01:00
timers.cc Shrink the tz_offset size to 41. (#1110) 2021-04-09 17:32:00 +01:00
timers.h Make PauseTiming() and ResumeTiming() per thread. (#286) 2016-09-02 21:34:34 -06:00