mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
..mention in benchmark docs as well
This commit is contained in:
parent
68b193e3f2
commit
192eb88475
@ -2,7 +2,10 @@ Benchmark
|
|||||||
=========
|
=========
|
||||||
|
|
||||||
The following is the result of a synthetic benchmark comparing both compilation
|
The following is the result of a synthetic benchmark comparing both compilation
|
||||||
time and module size of pybind11 against Boost.Python.
|
time and module size of pybind11 against Boost.Python. A detailed report about a
|
||||||
|
Boost.Python to pybind11 conversion of a real project is available here: [#f1]_.
|
||||||
|
|
||||||
|
.. [#f1] http://graylab.jhu.edu/RosettaCon2016/PyRosetta-4.pdf
|
||||||
|
|
||||||
Setup
|
Setup
|
||||||
-----
|
-----
|
||||||
|
@ -73,8 +73,6 @@ In addition to the core functionality, pybind11 provides some extra goodies:
|
|||||||
of `PyRosetta`_, an enourmous Boot.Python binding project, reported a binary
|
of `PyRosetta`_, an enourmous Boot.Python binding project, reported a binary
|
||||||
size reduction of **5.4x** and compile time reduction by **5.8x**.
|
size reduction of **5.4x** and compile time reduction by **5.8x**.
|
||||||
|
|
||||||
.. _PyRosetta: http://graylab.jhu.edu/RosettaCon2016/PyRosetta-4.pdf
|
|
||||||
|
|
||||||
- When supported by the compiler, two new C++14 features (relaxed constexpr and
|
- When supported by the compiler, two new C++14 features (relaxed constexpr and
|
||||||
return value deduction) are used to precompute function signatures at compile
|
return value deduction) are used to precompute function signatures at compile
|
||||||
time, leading to smaller binaries.
|
time, leading to smaller binaries.
|
||||||
@ -82,6 +80,8 @@ In addition to the core functionality, pybind11 provides some extra goodies:
|
|||||||
- With little extra effort, C++ types can be pickled and unpickled similar to
|
- With little extra effort, C++ types can be pickled and unpickled similar to
|
||||||
regular Python objects.
|
regular Python objects.
|
||||||
|
|
||||||
|
.. _PyRosetta: http://graylab.jhu.edu/RosettaCon2016/PyRosetta-4.pdf
|
||||||
|
|
||||||
Supported compilers
|
Supported compilers
|
||||||
*******************
|
*******************
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user