<https://www.linkedin.com/posts/sayyedasif_program...
# random
s
https://www.linkedin.com/posts/sayyedasif_programming-cpp-rust-activity-7268591883671457793-qg5X?utm_source=share&amp;utm_medium=member_desktop I knew Python was slow, but that slow… wow. I also believed C would be like three times faster than Java/Kotlin… they are pretty close.
r
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
(the array is a local fixed-sized array so the JVM likely removes bounds checks for instance)
👀 1
j
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.