3 ms·
Rust also cheats. https://megous.com/dl/tmp/1046458b5b450018.png https://megous.com/dl/tmp/1046458b5b450018.png
by megous 4y ago
Rust also cheats.
https://megous.com/dl/tmp/1046458b5b450018.png https://megous.com/dl/tmp/1046458b5b450018.png
- cle 4y agoSeems like it's buffering output, which Python also does. Python is much slower if you flush every write (I get 2.6 MiB/s default, 600 KiB/s with flush=True). Interestingly, Go is very fast with a 8 KiB buffer (same as Python's), I get 218 MiB/s.