Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2016 (1)
20082026
  1. …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
  2. It's also fairly normal to do this. Google benchmark [1] even warns you about this. [1] https://github.com/google/benchmark
  3. 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?
  4. …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
  5. …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...
  6. …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