All Rust benchmarks

Current benchmark data was generated on Sun Oct 17 2021, full log can be found HERE

CONTRIBUTIONS are WELCOME!

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 1.8ms 0.5ms 1.9MB 0ms 0ms rustc 1.57.0-nightly
1.rs 2.1ms 1.3ms 0.7MB 0ms 0ms rustc 1.55.0

mandelbrot

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
9.rs 472ms 0.6ms 9.6MB 893ms 0ms rustc 1.57.0-nightly
8.rs 507ms 2.7ms 8.2MB 957ms 0ms rustc 1.55.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
9.rs 11ms 0.7ms 2.3MB 10ms 0ms rustc 1.57.0-nightly
8.rs 12ms 1.4ms 2.1MB 10ms 0ms rustc 1.55.0

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 296ms 0.2ms 0.7MB 290ms 0ms rustc 1.55.0
3.rs 300ms 1.1ms 0.7MB 290ms 0ms rustc 1.57.0-nightly
2.rs 394ms 1.1ms 0.7MB 390ms 0ms rustc 1.55.0
1.rs 472ms 7.1ms 0.7MB 463ms 0ms rustc 1.55.0

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.rs 32ms 0.7ms 0.7MB 20ms 0ms rustc 1.57.0-nightly
7.rs 32ms 0.3ms 0.7MB 20ms 0ms rustc 1.55.0
2.rs 41ms 1.1ms 0.7MB 33ms 0ms rustc 1.55.0
1.rs 50ms 1.0ms 0.7MB 40ms 0ms rustc 1.55.0

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 898ms 0.3ms 2.2MB 1733ms 0ms rustc 1.55.0
3.rs 2146ms 5.4ms 2.3MB 4183ms 3ms rustc 1.55.0
5.rs 2966ms 16ms 2.2MB 5730ms 3ms rustc 1.55.0

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 234ms 3.7ms 0.7MB 433ms 0ms rustc 1.55.0
5.rs 532ms 66ms 0.7MB 1013ms 0ms rustc 1.55.0
3.rs 557ms 3.7ms 2.3MB 1040ms 0ms rustc 1.55.0
2.rs 1487ms 46ms 0.7MB 1477ms 0ms rustc 1.55.0
8.rs 3864ms 28ms 2.4MB 7530ms 0ms rustc 1.57.0-nightly

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 22ms 3.1ms 0.7MB 20ms 0ms rustc 1.55.0
5.rs 36ms 0.2ms 2.3MB 60ms 0ms rustc 1.55.0
3.rs 39ms 0.4ms 0.7MB 63ms 0ms rustc 1.55.0
2.rs 94ms 0.8ms 0.7MB 87ms 0ms rustc 1.55.0
8.rs 250ms 1.1ms 0.7MB 467ms 0ms rustc 1.57.0-nightly

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 247ms 4.7ms 26.0MB 427ms 13ms rustc 1.55.0
1.rs 766ms 1.5ms 19.7MB 733ms 17ms rustc 1.55.0
4.rs 1778ms 6.8ms 33.8MB 1753ms 13ms rustc 1.55.0
3.rs 2035ms 25ms 49.8MB 1997ms 20ms rustc 1.55.0

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 14ms 0.5ms 2.9MB 17ms 0ms rustc 1.55.0
1.rs 38ms 1.2ms 2.8MB 30ms 0ms rustc 1.55.0
4.rs 82ms 1.4ms 3.9MB 70ms 0ms rustc 1.55.0
3.rs 86ms 0.3ms 5.0MB 73ms 0ms rustc 1.55.0

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 1212ms 34ms 6.3MB 1913ms 53ms rustc 1.55.0
5.rs 1583ms 132ms 5.0MB 2970ms 63ms rustc 1.55.0
3.rs 1873ms 9.2ms 6.3MB 1797ms 50ms rustc 1.55.0
4.rs 3144ms 3.1ms 4.6MB 3090ms 23ms rustc 1.55.0
1.rs 3426ms 32ms 5.7MB 6203ms 100ms rustc 1.55.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.rs 124ms 5.3ms 3.2MB 103ms 0ms rustc 1.55.0
2.rs 139ms 18ms 3.0MB 177ms 7ms rustc 1.55.0
5.rs 188ms 12ms 3.1MB 240ms 13ms rustc 1.55.0
4.rs 220ms 1.2ms 2.7MB 190ms 0ms rustc 1.55.0
1.rs 254ms 7.4ms 4.8MB 367ms 23ms rustc 1.55.0

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 158ms 0.5ms 3.8MB 140ms 3ms rustc 1.55.0
2.rs 554ms 2.1ms 3.7MB 537ms 3ms rustc 1.55.0

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 46ms 0.5ms 2.9MB 30ms 0ms rustc 1.55.0
2.rs 107ms 1.2ms 3.3MB 97ms 0ms rustc 1.55.0

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
5.rs 1146ms 3.3ms 0.7MB 2193ms 0ms rustc 1.55.0
2.rs 3025ms 7.5ms 0.7MB 3017ms 0ms rustc 1.55.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
5.rs 99ms 1.0ms 0.7MB 177ms 0ms rustc 1.55.0
2.rs 247ms 1.0ms 0.7MB 237ms 0ms rustc 1.55.0

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
5.rs 585ms 26ms 1.3MB 810ms 13ms rustc 1.55.0
1.rs 633ms 4.2ms 0.7MB 393ms 213ms rustc 1.55.0

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
5.rs 47ms 0.9ms 2.8MB 37ms 3ms rustc 1.55.0
1.rs 80ms 21ms 0.7MB 33ms 17ms rustc 1.55.0

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 141ms 21ms 20.0MB 90ms 97ms rustc 1.55.0

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 76ms 23ms 16.8MB 30ms 23ms rustc 1.55.0

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 134ms 2.1ms 75.4MB 87ms 33ms rustc 1.55.0

Input: canada 15

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 931ms 1.1ms 606.1MB 660ms 253ms rustc 1.55.0

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 656ms 4.5ms 6.6MB 647ms 0ms rustc 1.55.0
1.rs 1189ms 15ms 40.8MB 1160ms 13ms rustc 1.55.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 149ms 0.7ms 3.0MB 137ms 0ms rustc 1.55.0
1.rs 152ms 1.0ms 11.7MB 137ms 0ms rustc 1.55.0

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 1609ms 9.8ms 2.8MB 1540ms 43ms rustc 1.55.0
1.rs 1636ms 6.5ms 2.9MB 1480ms 133ms rustc 1.55.0

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 354ms 9.9ms 2.6MB 320ms 7ms rustc 1.55.0
2.rs 360ms 6.8ms 2.5MB 343ms 0ms rustc 1.55.0