|
|
|
|
|
by jbverschoor
1324 days ago
|
|
Very interesting... Simple loop (0 -> 320000000) and add 1 to a variable. I couldn't reproduce 100x (no optimization flags, otherwise it won't do anything) Apple clang version 14.0.0 (clang-1400.0.29.102) -> 0m0.347s
ruby 3.1.2p20 -> 0m11.314s
Python 3.8.12 -> 0m19.662s
So ruby is almost 60% faster, but the C version is "only" 32x faster than ruby. 55x python.I thought the differences would be smaller these days |
|