Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eveningcoffee
· 11y ago · 0 comments
I am wondering what is exactly measured here (by timeit). For example for test 5, there is noticeable difference between timings of variants b and c despite them evaluating to the same list of instructions (and I did tests by myself).
Comments
[–]
im3w1l
11y ago
The first has
12 COMPARE_OP 8 (is)
while the second has
12 COMPARE_OP 2 (==)
[–]
eveningcoffee
OP
11y ago
You are right! I overlooked this. Thanks!
[–]
mcsalgado
11y ago
You mean test 6?