pybind11 icon indicating copy to clipboard operation
pybind11 copied to clipboard

[smart_holder] smart_holder / master benchmarking 2025-02-16

Open rwgk opened this issue 9 months ago • 0 comments

Description

NOT FOR MERGING

This PR simply removes smart_holder tests so that

  • tests/CMakeLists.txt is identical to master

while the code under

  • include/pybind11 is exactly as under the current smart_holder branch.

This was used to collect the measurements shown in the

The results in a nutshell:

  • .so sizes of extension modules are expected to be <3% larger (smart_holder / master).
  • Compile and link times are expected to be <2% larger.
  • Run times are expected to be practically identical (based on pytest execution times).

Note that these are not micro benchmarks, but assumed to reflect real-life situations.

For easy future reference:

Suggested changelog entry:


rwgk avatar Feb 17 '25 17:02 rwgk