Replies: 1 comment 2 replies
-
It turned out that the nanobind uses size optimization by default. So, when the NOMINSIZE flag is added to the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I needed to compare the performances of nanobind and pybind11 and I was surprised that the pybind11 was about twice faster in my case. I think I miss something. Could you please point to my code where it could be better?
I used the latest tagged 1.4 version from nanobind with Python 3.10 on a linux64.
The code is here:
https://github.com/cgnx-zpal/vectorbind/tree/main
One result with a release flag using
pytest
to measure:command:
pytest -rP test_performance.py
and the release build result, where the first number is for pybind11 and the second is the nanobind:
Beta Was this translation helpful? Give feedback.
All reactions