All Rust benchmarks

Current benchmark data was generated on Tue Jan 18 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1c.rs 356ms 43ms 0.7MB 237ms 20ms rustc 1.60.0-nightly
1.rs 472ms 37ms 0.6MB 313ms 20ms rustc 1.58.0
5.rs 505ms 58ms 1.3MB 433ms 17ms rustc 1.58.0
5c.rs 543ms 26ms 2.2MB 487ms 10ms rustc 1.60.0-nightly

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1c.rs 42ms 8.1ms 0.7MB 20ms 3ms rustc 1.60.0-nightly
1.rs 54ms 6.4ms 0.7MB 30ms 0ms rustc 1.58.0
5c.rs 58ms 12ms 1.4MB 43ms 3ms rustc 1.60.0-nightly
5.rs 70ms 3.3ms 1.3MB 53ms 3ms rustc 1.58.0

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 1.9ms 0.7ms 2.0MB 0ms 0ms rustc 1.60.0-nightly
1.rs 2.0ms 0.8ms 0.7MB 0ms 0ms rustc 1.58.0

mandelbrot

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
9.rs 549ms 3.8ms 8.2MB 1043ms 0ms rustc 1.60.0-nightly
8.rs 567ms 1.9ms 8.2MB 1087ms 0ms rustc 1.58.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
9.rs 11ms 0.2ms 2.2MB 10ms 0ms rustc 1.60.0-nightly
8.rs 12ms 0.5ms 2.2MB 10ms 0ms rustc 1.58.0

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 315ms 0.3ms 0.7MB 307ms 0ms rustc 1.58.0
3.rs 318ms 0.7ms 0.7MB 310ms 0ms rustc 1.60.0-nightly
2.rs 386ms 0.1ms 0.7MB 377ms 0ms rustc 1.58.0
1.rs 400ms 2.5ms 0.7MB 383ms 0ms rustc 1.58.0

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.rs 33ms 0.1ms 0.7MB 23ms 0ms rustc 1.60.0-nightly
7.rs 34ms 1.0ms 0.7MB 27ms 0ms rustc 1.58.0
2.rs 41ms 0.7ms 0.7MB 30ms 0ms rustc 1.58.0
1.rs 41ms 0.5ms 0.7MB 30ms 0ms rustc 1.58.0

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.rs 7.9ms 0.3ms 0.7MB 0ms 0ms rustc 1.60.0-nightly
7.rs 8.2ms 0.7ms 0.7MB 0ms 0ms rustc 1.58.0
2.rs 9.3ms 0.7ms 0.7MB 0ms 0ms rustc 1.58.0
1.rs 10ms 0.6ms 0.7MB 0ms 0ms rustc 1.58.0

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 1079ms 23ms 2.2MB 2063ms 3ms rustc 1.58.0
5.rs 1980ms 5.1ms 2.2MB 3800ms 7ms rustc 1.58.0
3.rs 2251ms 2.9ms 2.1MB 4387ms 3ms rustc 1.58.0

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 273ms 0.9ms 2.3MB 517ms 0ms rustc 1.58.0
5.rs 501ms 1.9ms 2.3MB 950ms 0ms rustc 1.58.0
3.rs 570ms 1.6ms 2.3MB 1090ms 0ms rustc 1.58.0
2.rs 1520ms 0.3ms 0.7MB 1510ms 0ms rustc 1.58.0
8.rs 1561ms 2.7ms 2.3MB 3047ms 0ms rustc 1.60.0-nightly

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 22ms 2.0ms 0.7MB 30ms 0ms rustc 1.58.0
5.rs 37ms 2.7ms 2.6MB 57ms 0ms rustc 1.58.0
3.rs 42ms 0.7ms 0.7MB 70ms 0ms rustc 1.58.0
2.rs 98ms 0.9ms 0.7MB 90ms 0ms rustc 1.58.0
8.rs 105ms 1.0ms 2.1MB 187ms 0ms rustc 1.60.0-nightly

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.rs 1652ms 21ms 33.9MB 1630ms 3ms rustc 1.58.0
3.rs 1871ms 41ms 49.8MB 1840ms 17ms rustc 1.58.0

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.rs 75ms 1.4ms 3.9MB 67ms 0ms rustc 1.58.0
3.rs 82ms 0.7ms 4.9MB 70ms 0ms rustc 1.58.0

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 878ms 24ms 6.4MB 1683ms 23ms rustc 1.58.0
5.rs 1306ms 311ms 7.5MB 2530ms 13ms rustc 1.58.0
3.rs 1765ms 5.9ms 6.3MB 1710ms 37ms rustc 1.58.0
1.rs 2717ms 25ms 5.9MB 5247ms 77ms rustc 1.58.0
4.rs 3289ms 17ms 4.6MB 3280ms 0ms rustc 1.58.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 70ms 4.7ms 3.1MB 117ms 3ms rustc 1.58.0
5.rs 85ms 19ms 3.1MB 143ms 10ms rustc 1.58.0
3.rs 112ms 1.1ms 3.1MB 103ms 0ms rustc 1.58.0
1.rs 190ms 5.4ms 2.8MB 330ms 20ms rustc 1.58.0
4.rs 217ms 2.0ms 2.8MB 210ms 0ms rustc 1.58.0

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 157ms 7.6ms 3.8MB 140ms 0ms rustc 1.58.0
2.rs 590ms 3.8ms 3.8MB 577ms 0ms rustc 1.58.0

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 41ms 0.4ms 3.1MB 30ms 0ms rustc 1.58.0
2.rs 108ms 0.7ms 3.3MB 100ms 0ms rustc 1.58.0

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
5.rs 1330ms 5.7ms 0.7MB 2547ms 7ms rustc 1.58.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
5.rs 116ms 1.2ms 0.7MB 203ms 0ms rustc 1.58.0
2.rs 566ms 5.4ms 0.7MB 553ms 0ms rustc 1.58.0

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 134ms 7.3ms 16.0MB 93ms 87ms rustc 1.58.0

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 73ms 13ms 13.8MB 13ms 27ms rustc 1.58.0

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 125ms 7.1ms 75.5MB 83ms 30ms rustc 1.58.0

Input: canada 15

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 878ms 36ms 605.4MB 630ms 230ms rustc 1.58.0

knucleotide

Input: 2500000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.rs 364ms 42ms 31.0MB 600ms 13ms rustc 1.58.0

Input: 250000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.rs 47ms 2.8ms 17.9MB 60ms 7ms rustc 1.58.0

lru

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 313ms 1.8ms 0.7MB 303ms 0ms rustc 1.58.0

Input: 1000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 66ms 2.0ms 0.7MB 57ms 0ms rustc 1.58.0

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 33ms 0.4ms 0.7MB 23ms 0ms rustc 1.58.0

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 620ms 4.4ms 6.7MB 610ms 0ms rustc 1.58.0
1.rs 990ms 49ms 40.8MB 967ms 10ms rustc 1.58.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 128ms 0.8ms 11.7MB 113ms 0ms rustc 1.58.0
2.rs 148ms 0.1ms 3.2MB 140ms 0ms rustc 1.58.0

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 1756ms 0.6ms 2.8MB 1683ms 57ms rustc 1.58.0
1.rs 1756ms 8.3ms 2.9MB 1620ms 120ms rustc 1.58.0

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 370ms 0.8ms 2.6MB 357ms 3ms rustc 1.58.0
2.rs 392ms 1.0ms 2.6MB 380ms 0ms rustc 1.58.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 25ms 0.2ms 2.2MB 13ms 0ms rustc 1.58.0
2.rs 25ms 0.5ms 2.2MB 20ms 0ms rustc 1.58.0

regex-redux

Input: 2500000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
6.rs 593ms 41ms 77.7MB 713ms 20ms rustc 1.58.0
7.rs 608ms 57ms 77.8MB 723ms 13ms rustc 1.58.0

Input: 250000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.rs 63ms 1.2ms 11.9MB 67ms 3ms rustc 1.58.0
6.rs 63ms 2.0ms 11.6MB 70ms 0ms rustc 1.58.0

secp256k1

Input: 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
0.rs 360ms 1.0ms 0.7MB 350ms 0ms rustc 1.58.0
1.rs 4710ms 46ms 0.6MB 4693ms 3ms rustc 1.58.0

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
0.rs 38ms 0.8ms 0.7MB 30ms 0ms rustc 1.58.0
1.rs 472ms 5.4ms 0.7MB 463ms 0ms rustc 1.58.0

Input: 50

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
0.rs 5.7ms 0.8ms 0.7MB 0ms 0ms rustc 1.58.0
1.rs 50ms 1.1ms 0.7MB 40ms 0ms rustc 1.58.0