All Go benchmarks

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

CONTRIBUTIONS are WELCOME!

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 2469ms 2.9ms 68.6MB 4743ms 77ms go 1.17.2
1.go 3157ms 37ms 41.3MB 4597ms 47ms go 1.17.2
1.go 4376ms 26ms 39.6MB 4353ms 7ms tinygo 0.20.0
2.go 4976ms 7.5ms 40.1MB 4957ms 3ms tinygo 0.20.0

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 81ms 7.9ms 9.9MB 123ms 3ms go 1.17.2
1.go 140ms 37ms 8.2MB 143ms 3ms go 1.17.2
1.go 186ms 4.8ms 4.6MB 177ms 0ms tinygo 0.20.0
2.go 215ms 1.8ms 5.3MB 207ms 0ms tinygo 0.20.0

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 1026ms 80ms 14.7MB 1693ms 13ms go 1.17.2
1.go 1884ms 35ms 254.9MB 1730ms 90ms tinygo 0.20.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 139ms 59ms 5.3MB 197ms 3ms go 1.17.2
1.go 317ms 6.4ms 66.3MB 267ms 23ms tinygo 0.20.0

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 204ms 6.5ms 10.2MB 173ms 10ms go 1.17.2

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 69ms 3.3ms 8.0MB 40ms 7ms go 1.17.2

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 1753ms 57ms 2.8MB 3377ms 10ms go 1.17.2
3.go 3144ms 0.9ms 49.9MB 3117ms 10ms tinygo 0.20.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 125ms 6.0ms 3.4MB 180ms 0ms go 1.17.2
3.go 332ms 1.6ms 50.9MB 313ms 3ms tinygo 0.20.0

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 615ms 21ms 2.8MB 397ms 17ms go 1.17.2

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 93ms 3.7ms 2.8MB 63ms 0ms go 1.17.2

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 2.3ms 1.1ms 0.6MB 0ms 0ms tinygo 0.20.0
1.go 5.1ms 3.0ms 2.7MB 0ms 0ms go 1.17.2

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 708ms 88ms 168.2MB 733ms 423ms go 1.17.2

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 158ms 7.7ms 38.2MB 107ms 77ms go 1.17.2

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 186ms 12ms 18.7MB 167ms 3ms go 1.17.2

Input: canada 15

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 1060ms 3.4ms 115.9MB 1047ms 33ms go 1.17.2

mandelbrot

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 2232ms 24ms 11.8MB 4343ms 3ms go 1.17.2

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 48ms 5.9ms 2.8MB 70ms 0ms go 1.17.2

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 513ms 0.4ms 0.6MB 507ms 0ms tinygo 0.20.0
1.go 526ms 0.7ms 2.8MB 517ms 0ms go 1.17.2

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 53ms 1.6ms 0.6MB 43ms 0ms tinygo 0.20.0
1.go 57ms 2.6ms 2.8MB 50ms 0ms go 1.17.2

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 727ms 1.1ms 18.4MB 717ms 0ms tinygo 0.20.0
1.go 958ms 6.8ms 75.1MB 923ms 20ms go 1.17.2
2.go 987ms 5.8ms 22.3MB 973ms 7ms go 1.17.2
1.go 1121ms 32ms 63.9MB 1093ms 10ms tinygo 0.20.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 120ms 3.7ms 21.7MB 107ms 3ms go 1.17.2
1.go 140ms 1.7ms 18.1MB 127ms 3ms tinygo 0.20.0
2.go 168ms 1.7ms 6.4MB 153ms 0ms tinygo 0.20.0
2.go 228ms 2.2ms 7.5MB 220ms 0ms go 1.17.2

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.go 1274ms 12ms 8.5MB 1260ms 0ms go 1.17.2

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.go 305ms 6.2ms 8.5MB 293ms 0ms go 1.17.2

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.go 2635ms 390ms 4.8MB 4713ms 7ms go 1.17.2

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.go 622ms 23ms 4.8MB 1073ms 0ms go 1.17.2
4.go 1514ms 0.6ms 3.3MB 1503ms 0ms tinygo 0.20.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.go 54ms 2.9ms 4.8MB 63ms 0ms go 1.17.2
4.go 120ms 17ms 3.7MB 110ms 0ms tinygo 0.20.0