22 Jul
2020
22 Jul
'20
5:48 a.m.
On Wed, Jul 22, 2020 at 7:31 AM Marco Sulla
For benchmarks, I used simply timeit, with autorange and repeat and, as suggested in the module documentation, I got the minimum of the results. Here is the code:
https://github.com/Marco-Sulla/cpython/blob/master/frozendict/test/bench.py
I strongly recommend to use pyperf for benchmarking.
Otherwise, you will see random performance changes caused by random
reasons including ASLR.
https://pypi.org/project/pyperf/
https://pyperf.readthedocs.io/en/latest/
Regards,
--
Inada Naoki