Skip to content

Commit 97d90b5

Browse files
androm3daomjavaid
andauthored
Update google benchmark to v1.9.1 (#222)
* Update google benchmark to v1.9.1 Updated MicroBenchmarks/lib/benchmark/ using update_benchmark.sh with the change below: ``` diff --git a/MicroBenchmarks/libs/update_benchmark.sh b/MicroBenchmarks/libs/update_benchmark.sh index b4caa3c..c1f3e84f 100755 --- a/MicroBenchmarks/libs/update_benchmark.sh +++ b/MicroBenchmarks/libs/update_benchmark.sh @@ -9,8 +9,8 @@ echo read -p "Press a key to continue, or Ctrl+C to cancel" rm -rf benchmark -git clone https://github.com/google/benchmark.git -git clone https://github.com/google/googletest.git benchmark/googletest +git clone --branch=v1.9.1 https://github.com/google/benchmark.git +git clone --branch=v1.16.0 https://github.com/google/googletest.git benchmark/googletest rm -rf benchmark/googletest/.git* rm -rf benchmark/.git* ``` * Fix MicroBenchmark build on Linux with clang 18.1.8 (#141) MicroBenchmarks/libs/benchmark/test/options_test.cc fails to build on Linux/AArch64 with following error: error: variable 'actual_iterations' set but not used This patch adds benchmark::DoNotOptimize(actual_iterations); to to function BM_explicit_iteration_count in options_test.cc -Wall and -Werror were being used to compile and I am surprised that this was not caught by any of the buildbots. Some versions of clang compile this all fine with -Wall -Werror. --------- Co-authored-by: Omair Javaid <[email protected]>
1 parent 0dd1905 commit 97d90b5

File tree

350 files changed

+29916
-23640
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+29916
-23640
lines changed

MicroBenchmarks/libs/benchmark/.clang-tidy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
Checks: 'clang-analyzer-*,readability-redundant-*,performance-*'
33
WarningsAsErrors: 'clang-analyzer-*,readability-redundant-*,performance-*'
44
HeaderFilterRegex: '.*'
5-
AnalyzeTemporaryDtors: false
65
FormatStyle: none
76
User: user
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/keith/pre-commit-buildifier
3+
rev: 7.3.1
4+
hooks:
5+
- id: buildifier
6+
- id: buildifier-lint
7+
- repo: https://github.com/pre-commit/mirrors-mypy
8+
rev: v1.13.0
9+
hooks:
10+
- id: mypy
11+
types_or: [ python, pyi ]
12+
args: [ "--ignore-missing-imports", "--scripts-are-modules" ]
13+
- repo: https://github.com/astral-sh/ruff-pre-commit
14+
rev: v0.7.2
15+
hooks:
16+
- id: ruff
17+
args: [ --fix, --exit-non-zero-on-fix ]
18+
- id: ruff-format

MicroBenchmarks/libs/benchmark/.travis.yml

Lines changed: 0 additions & 208 deletions
This file was deleted.

0 commit comments

Comments
 (0)