The loop is just a sum of modulos. It’s somewhat interesting but also quite irrelevant as a real-world benchmark (the way it’s written at least)
💡 2
👍 2
👆 1
romainguy
12/07/2024, 7:09 AM
(the array is a local fixed-sized array so the JVM likely removes bounds checks for instance)
👀 1
j
Jaap Beetstra
12/07/2024, 12:07 PM
I do like the visualization. The updated version (https://benjdd.com/languages2/) has a similar visualization; looks like it is built with the d3 library but not a standard one.