circuitpython/tests/bench
Paul Sokolovsky 6638ea9ca3 tests/bench: Add testcases for lookup in 5-el instance and namedtuple.
... and we have not that bad mapping type after all - lookup time is ~ the
same as in one-attr instance. My namedtuple implementation on the other
hand degrades awfully.

So, need to rework it. First observation is that named tuple fields are
accessed as attributes, so all names are interned at the program start.
Then, really should store field array as qstr[], and do quick 32/64 bit
scan thru it.
2014-05-07 22:34:00 +03:00
..
bench.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
loop_count-1-range.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
loop_count-2-range_iter.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
loop_count-3-while_up.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
loop_count-4-while_down_gt.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
loop_count-5-while_down_ne.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
var-1-constant.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
var-2-global.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
var-3-local.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
var-4-arg.py tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
var-5-class-attr.py tests/bench/var: Add tests for class/instance var access. 2014-05-05 02:17:13 +03:00
var-6-instance-attr.py tests/bench/var: Add tests for class/instance var access. 2014-05-05 02:17:13 +03:00
var-6.1-instance-attr-5.py tests/bench: Add testcases for lookup in 5-el instance and namedtuple. 2014-05-07 22:34:00 +03:00
var-7-instance-meth.py tests/bench/var: Add tests for class/instance var access. 2014-05-05 02:17:13 +03:00
var-8-namedtuple-1st.py tests/bench: Time namedtuple field access. 2014-05-07 22:33:37 +03:00
var-8.1-namedtuple-5th.py tests/bench: Add testcases for lookup in 5-el instance and namedtuple. 2014-05-07 22:34:00 +03:00