Add a script for benchmarking gevent.local
[skip ci] Current numbers: local_36_master =============== getattr gevent: Mean +- std dev: 216 ns +- 6 ns setattr gevent: Mean +- std dev: 215 ns +- 6 ns getattr gevent sub: Mean +- std dev: 600 ns +- 19 ns setattr gevent sub: Mean +- std dev: 591 ns +- 38 ns getattr native: Mean +- std dev: 56.9 ns +- 4.1 ns setattr native: Mean +- std dev: 84.3 ns +- 4.9 ns getattr native sub: Mean +- std dev: 65.6 ns +- 5.3 ns setattr native sub: Mean +- std dev: 76.2 ns +- 4.6 ns local_27_master =============== getattr gevent: Mean +- std dev: 177 ns +- 7 ns setattr gevent: Mean +- std dev: 192 ns +- 6 ns getattr gevent sub: Mean +- std dev: 501 ns +- 10 ns setattr gevent sub: Mean +- std dev: 536 ns +- 25 ns getattr native: Mean +- std dev: 93.8 ns +- 3.6 ns setattr native: Mean +- std dev: 118 ns +- 6 ns getattr native sub: Mean +- std dev: 102 ns +- 4 ns setattr native sub: Mean +- std dev: 118 ns +- 8 ns local_pypy_master ================= getattr gevent: Mean +- std dev: 135 ns +- 6 ns setattr gevent: Mean +- std dev: 126 ns +- 4 ns getattr gevent sub: Mean +- std dev: 150 ns +- 4 ns setattr gevent sub: Mean +- std dev: 153 ns +- 7 ns getattr native: Mean +- std dev: 0.18 ns +- 0.00 ns setattr native: Mean +- std dev: 0.18 ns +- 0.01 ns getattr native sub: Mean +- std dev: 0.18 ns +- 0.01 ns setattr native sub: Mean +- std dev: 0.19 ns +- 0.01 ns
Showing
src/greentest/bench_local.py
0 → 100644
Please register or sign in to comment