Project to test yourself here
wackytoaster.at/parachute/perftest.c3p
I stumbled on this by accident. I have two operations. Compare instance variable and regex (on the same instance variable). To my surprise, regex consistently performs better somehow.
With compare instance variable it settles around 95000 repeats, but with regex it settles at around 150000 repeats.
I expected regex to perform worse if anything, not straight up 1.5 times faster! Why is that? Is my example faulty?