[all-commits] [llvm/llvm-project] 97732a: [libc++][format] Adds print benchmarks.

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Mar 4 12:04:40 PST 2025


  Branch: refs/heads/users/mordante/P3107R5-benchmarks
  Home:   https://github.com/llvm/llvm-project
  Commit: 97732a4da20cf57acecee0a14e68cf57749930b2
      https://github.com/llvm/llvm-project/commit/97732a4da20cf57acecee0a14e68cf57749930b2
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    A libcxx/test/benchmarks/print.bench.cpp

  Log Message:
  -----------
  [libc++][format] Adds print benchmarks.

P3107R5 "Permit an efficient implementation of std::print" should
improve the performance of std::print. Before implementing these
improvements it adds the benchmark provided in the paper.

It replaces the `fmt::memory_buffer` with `std::vector<char>`, which
is not a stack buffer. However there is not a good Standard type.
(std::inplace_vector would be a better type.)



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