Public
Authored by Alexandre Beelen

Timing gaussfit

small snippet to test timing of 2D gaussian + constant fitting

result of ipython timing_gaussfit.py :

  • for shape=256 the overhead is not so big
1 loop, best of 3: 896 ms per loop
1 loop, best of 3: 864 ms per loop
1 loop, best of 3: 840 ms per loop
1 loop, best of 3: 777 ms per loop
  • but for shape=8, this changes to
10 loops, best of 3: 59.7 ms per loop
10 loops, best of 3: 24.5 ms per loop
10 loops, best of 3: 19.3 ms per loop
100 loops, best of 3: 4.36 ms per loop
Edited
timing_gaussfit.py 4.15 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment