[all-commits] [llvm/llvm-project] 28cf18: [libc++] Fix query benchmarks for associative cont...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Sep 16 09:37:27 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28cf18776b433264c7f19919c035f9f8a3143e1b
      https://github.com/llvm/llvm-project/commit/28cf18776b433264c7f19919c035f9f8a3143e1b
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2026-09-16 (Wed, 16 Sep 2026)

  Changed paths:
    M libcxx/test/benchmarks/containers/associative/associative_container_benchmarks.h

  Log Message:
  -----------
  [libc++] Fix query benchmarks for associative containers (#216065)

We were calling get_key and the random number generator in the hot loop.
Instead, create a pool of keys to draw from in the initial setup phase,
and then query these keys in a round-robin fashion.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list