google/benchmark
View on GitHub ↗ ★ 10,501 C++
A microbenchmark support library
6 mentions on Hacker News by 6 people: 0 stories, 6 comments · first 2016-11-29 · latest 2025-12-03
20082026
-
…if you're coming from "old" C++. [0]: https://gcc.godbolt.org/ [1]: https://quick-bench.com/ [2]: https://github.com/google/benchmark [3]: https://github.com/google/googletest
comment by inetknght · 2025-12-03 · in Trying Out C++26 Executors -
It's also fairly normal to do this. Google benchmark [1] even warns you about this. [1] https://github.com/google/benchmark
comment by carlmr · 2024-10-23 · in Rustls Outperforms OpenSSL and BoringSSL -
This is important work, at least partially addressed in other benchmark harnesses (like github.com/google/benchmark has DoNotOptimize and ClobberMemory https://github.com/google/benchmark/blob/7fad964a94da9364af1... ). By and large this…
comment by phdelightful · 2021-10-20 · in What's Wrong with My Benchmark Results? -
…unit testing. Something like Google's micro-benchmarking library [1] is more like unit testing. [1] https://github.com/google/benchmark
comment by FartyMcFarter · 2020-11-28 · in K6: Like unit testing, for performance -
…to consume the result, so it's not optimized away. You can use something like DoNotOptimize here: https://github.com/google/benchmark/blob/master/include/benc...
comment by BeeOnRope · 2019-03-16 · in XXH3 – a new speed-optimized hash algorithm -
…till enough time is spent to have some "confidence" on the measure, I've been fairly happy with: https://github.com/google/benchmark/
comment by Joky · 2016-11-29 · in Beating the Compiler