|
|
|
|
|
by qazpot
1080 days ago
|
|
I wrote simple implementations (simple if/else/while and printing to stdout) with no optimizations in Rust, Python3 and C Rust -> 23.2MiB/s Python3 -> 28.6MiB/s C -> 238MiB/s Does anyone know why Rust's performance is in the same ballpark as Python3. I thought it would be more closer to C. |
|
In order to get similar performance as C, you probably need to take care of this lock yourself:
(And also you need to make the buffering size for stdout match C’s.)