PythonCall.jl icon indicating copy to clipboard operation
PythonCall.jl copied to clipboard

Overhead vs Pure Python

Open Dale-Black opened this issue 2 years ago • 3 comments

What is the best way to test the overhead of calling a function in python vs calling a Python function through PythonCall?

Dale-Black avatar Feb 25 '23 18:02 Dale-Black

You can use BenchmarkTools in Julia and timeit in Python to do micro benchmarks. If the function takes more than a microsecond then the overhead of calling from PythonCall should be negligible.

cjdoris avatar Feb 28 '23 08:02 cjdoris

This issue has been marked as stale because it has been open for 30 days with no activity. If the issue is still relevant then please leave a comment, or else it will be closed in 7 days.

github-actions[bot] avatar Aug 30 '23 01:08 github-actions[bot]

This issue has been closed because it has been stale for 7 days. You can re-open it if it is still relevant.

github-actions[bot] avatar Sep 07 '23 01:09 github-actions[bot]