[libcxx-commits] [libcxx] [libc++] Rewrite the std::make_heap benchmark (PR #178696)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 4 07:02:37 PST 2026


================
@@ -1,38 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++03, c++11, c++14, c++17
-
-#include <algorithm>
-
-#include "common.h"
-
-namespace {
-template <class ValueType>
-struct RangesPopHeap {
-  size_t Quantity;
-
-  void run(benchmark::State& state) const {
-    runOpOnCopies<ValueType>(state, Quantity, Order(), BatchSize::CountElements, [](auto& Copy) {
-      for (auto B = Copy.begin(), I = Copy.end(); I != B; --I) {
-        std::ranges::pop_heap(B, I);
----------------
ldionne wrote:

I would keep them separate like we do for other algorithms

https://github.com/llvm/llvm-project/pull/178696


More information about the libcxx-commits mailing list