by sild · 6y ago · 0 comments
https://quick-bench.com/q/314Z81FskTlcDqMCUHFVhWmDz8Q
Update 1: After moving some constants around, I get the 40% result:
https://quick-bench.com/q/lPrpQTAyDQuOoKS9MBWCTBXk1TE
No idea why it made such a big difference to the benchmark.
Update 2: If the test order is reversed, the result goes back to being only slightly faster for the sentinel version:
I was going to just point out that 40% percent difference would mean that the version without the sentinel can be improved... was going to check if there is something that is preventing the branch prediction from actually taking care of that performance drop - memory is only being read and nothing should be invalidated...