Skip to content

Commit

Permalink
Merge pull request #985 from Chilledheart/benchmark_bump_to_1_8_4
Browse files Browse the repository at this point in the history
benchmark: update for 1.8.4
  • Loading branch information
Chilledheart authored May 30, 2024
2 parents f1b5dac + 4eb2a9b commit 4778c4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion third_party/benchmark
Submodule benchmark updated 80 files
+0 −1 .clang-tidy
+4 −5 .github/install_bazel.sh
+1 −1 .github/libcxx-setup.sh
+1 −1 .github/workflows/bazel.yml
+53 −6 .github/workflows/build-and-test.yml
+2 −1 .github/workflows/clang-format-lint.yml
+38 −0 .github/workflows/pre-commit.yml
+0 −28 .github/workflows/pylint.yml
+8 −7 .github/workflows/test_bindings.yml
+44 −33 .github/workflows/wheels.yml
+1 −0 .gitignore
+18 −0 .pre-commit-config.yaml
+99 −94 .ycm_extra_conf.py
+1 −0 AUTHORS
+40 −13 BUILD.bazel
+25 −10 CMakeLists.txt
+2 −0 CONTRIBUTORS
+27 −10 MODULE.bazel
+11 −9 WORKSPACE
+16 −19 bazel/benchmark_deps.bzl
+0 −3 bindings/python/BUILD
+0 −25 bindings/python/build_defs.bzl
+3 −16 bindings/python/google_benchmark/BUILD
+18 −39 bindings/python/google_benchmark/__init__.py
+4 −1 bindings/python/google_benchmark/example.py
+7 −0 bindings/python/google_benchmark/version.py
+0 −17 bindings/python/nanobind.BUILD
+0 −6 bindings/python/python_headers.BUILD
+4 −26 cmake/GetGitVersion.cmake
+7 −0 cmake/benchmark_main.pc.in
+4 −4 docs/python_bindings.md
+2 −4 docs/reducing_variance.md
+4 −14 docs/releasing.md
+28 −2 docs/user_guide.md
+61 −12 include/benchmark/benchmark.h
+38 −2 pyproject.toml
+101 −66 setup.py
+10 −1 src/CMakeLists.txt
+33 −4 src/benchmark.cc
+3 −2 src/benchmark_register.cc
+2 −2 src/benchmark_register.h
+6 −5 src/benchmark_runner.cc
+3 −3 src/colorprint.cc
+29 −14 src/complexity.cc
+9 −5 src/console_reporter.cc
+2 −2 src/counter.cc
+11 −3 src/csv_reporter.cc
+24 −12 src/cycleclock.h
+1 −5 src/internal_macros.h
+7 −0 src/json_reporter.cc
+3 −2 src/perf_counters.cc
+10 −5 src/statistics.cc
+1 −1 src/string_util.cc
+38 −22 src/sysinfo.cc
+7 −3 src/timers.cc
+5 −0 test/BUILD
+49 −40 test/CMakeLists.txt
+1 −1 test/basic_test.cc
+1 −1 test/benchmark_gtest.cc
+26 −0 test/benchmark_test.cc
+101 −59 test/complexity_test.cc
+2 −2 test/diagnostics_test.cc
+1 −1 test/link_main_test.cc
+1 −1 test/memory_manager_test.cc
+1 −0 test/output_test_helper.cc
+1 −1 test/perf_counters_gtest.cc
+1 −1 test/perf_counters_test.cc
+7 −4 test/reporter_output_test.cc
+1 −1 test/skip_with_error_test.cc
+2 −2 test/statistics_gtest.cc
+6 −3 test/user_counters_tabular_test.cc
+7 −7 test/user_counters_test.cc
+3 −2 tools/BUILD.bazel
+261 −170 tools/compare.py
+18 −0 tools/gbench/Inputs/test5_run0.json
+18 −0 tools/gbench/Inputs/test5_run1.json
+4 −4 tools/gbench/__init__.py
+1,071 −653 tools/gbench/report.py
+71 −43 tools/gbench/util.py
+65 −53 tools/strip_asm.py
25 changes: 8 additions & 17 deletions third_party/benchmark-winxp-fix.patch
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
From f9dae25d4721574d55a75e79c29615f3407717a2 Mon Sep 17 00:00:00 2001
From: Chilledheart <[email protected]>
Date: Fri, 21 Jul 2023 16:00:26 +0800
Subject: [PATCH] allow windows xp build

---
src/sysinfo.cc | 8 +++++---
src/timers.cc | 2 +-
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/sysinfo.cc b/src/sysinfo.cc
index 4578cb0..3ad29eb 100644
index 7261e2a..962ad00 100644
--- a/src/sysinfo.cc
+++ b/src/sysinfo.cc
@@ -15,12 +15,15 @@
@@ -15,16 +15,15 @@
#include "internal_macros.h"

#ifdef BENCHMARK_OS_WINDOWS
-#if !defined(WINVER) || WINVER < 0x0600
-#undef WINVER
-#define WINVER 0x0600
-#endif // WINVER handling
+struct IUnknown;
#include <shlwapi.h>
#undef StrCat // Don't let StrCat in string_util.h be renamed to lstrcatA
Expand All @@ -29,7 +23,7 @@ index 4578cb0..3ad29eb 100644
#else
#include <fcntl.h>
#if !defined(BENCHMARK_OS_FUCHSIA) && !defined(BENCHMARK_OS_QURT)
@@ -733,8 +736,7 @@ double GetCPUCyclesPerSecond(CPUInfo::Scaling scaling) {
@@ -748,8 +747,7 @@ double GetCPUCyclesPerSecond(CPUInfo::Scaling scaling) {
// In NT, read MHz from the registry. If we fail to do so or we're in win9x
// then make a crude estimate.
DWORD data, data_size = sizeof(data);
Expand All @@ -40,7 +34,7 @@ index 4578cb0..3ad29eb 100644
"HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0",
"~MHz", nullptr, &data, &data_size)))
diff --git a/src/timers.cc b/src/timers.cc
index b23feea..a871002 100644
index d0821f3..3390e38 100644
--- a/src/timers.cc
+++ b/src/timers.cc
@@ -17,9 +17,9 @@
Expand All @@ -54,6 +48,3 @@ index b23feea..a871002 100644
#include <windows.h>
#else
#include <fcntl.h>
--
2.40.1.windows.1

0 comments on commit 4778c4d

Please sign in to comment.