All Go 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

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 2389ms 16ms 73.4MB 4553ms 113ms go 1.17.6
1.go 3073ms 30ms 44.8MB 4487ms 50ms go 1.17.6
1.go 4140ms 7.9ms 38.6MB 4127ms 0ms tinygo 0.21.0
2.go 4273ms 17ms 38.6MB 4257ms 3ms tinygo 0.21.0

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 80ms 1.8ms 7.9MB 133ms 3ms go 1.17.6
1.go 125ms 0.5ms 7.4MB 137ms 0ms go 1.17.6
1.go 167ms 0.6ms 3.9MB 160ms 0ms tinygo 0.21.0
2.go 201ms 0.8ms 3.9MB 190ms 0ms tinygo 0.21.0

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 782ms 169ms 12.4MB 1510ms 3ms go 1.17.6
1.go 1934ms 4.6ms 253.7MB 1850ms 73ms tinygo 0.21.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 61ms 9.1ms 4.0MB 107ms 0ms go 1.17.6
1.go 307ms 1.4ms 66.8MB 290ms 10ms tinygo 0.21.0

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 177ms 2.4ms 7.7MB 160ms 7ms go 1.17.6

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 52ms 4.6ms 6.4MB 37ms 0ms go 1.17.6

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 1416ms 4.1ms 1.7MB 2740ms 3ms go 1.17.6
3.go 3068ms 1.1ms 49.1MB 3050ms 0ms tinygo 0.21.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 142ms 2.2ms 1.7MB 220ms 0ms go 1.17.6
3.go 328ms 2.0ms 50.1MB 310ms 0ms tinygo 0.21.0

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 461ms 8.6ms 2.1MB 450ms 17ms go 1.17.6

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 54ms 5.4ms 2.1MB 40ms 0ms go 1.17.6

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 1.2ms 0.8ms 0.0MB 0ms 0ms tinygo 0.21.0
1.go 2.8ms 0.4ms 1.5MB 0ms 0ms go 1.17.6

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 769ms 57ms 154.9MB 777ms 463ms go 1.17.6

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 144ms 3.4ms 35.3MB 103ms 70ms go 1.17.6

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 177ms 2.7ms 17.7MB 160ms 10ms go 1.17.6

Input: canada 15

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 1067ms 16ms 108.5MB 1033ms 57ms go 1.17.6

knucleotide

Input: 2500000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.go 1533ms 34ms 38.9MB 2783ms 33ms go 1.17.6

Input: 250000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
7.go 238ms 10ms 25.6MB 383ms 17ms go 1.17.6

lru

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 1929ms 20ms 8.1MB 1943ms 33ms go 1.17.6
1.go 2020ms 9.6ms 8.1MB 2047ms 20ms go 1.17.6
2.go 2959ms 1.7ms 0.0MB 2950ms 0ms tinygo 0.21.0
1.go 3249ms 9.0ms 0.0MB 3237ms 0ms tinygo 0.21.0

Input: 1000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 384ms 2.3ms 8.1MB 380ms 0ms go 1.17.6
1.go 412ms 11ms 8.1MB 407ms 0ms go 1.17.6
2.go 591ms 0.5ms 0.0MB 583ms 0ms tinygo 0.21.0
1.go 648ms 0.8ms 0.0MB 640ms 0ms tinygo 0.21.0

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 195ms 0.3ms 8.1MB 187ms 0ms go 1.17.6
1.go 205ms 1.5ms 8.0MB 197ms 0ms go 1.17.6
2.go 298ms 0.6ms 2.0MB 290ms 0ms tinygo 0.21.0
1.go 327ms 1.4ms 0.0MB 320ms 0ms tinygo 0.21.0

mandelbrot

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 2189ms 21ms 11.8MB 4247ms 10ms go 1.17.6

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 44ms 2.1ms 2.8MB 67ms 0ms go 1.17.6

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 434ms 1.0ms 0.0MB 430ms 0ms tinygo 0.21.0
1.go 457ms 0.1ms 2.8MB 450ms 0ms go 1.17.6

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 44ms 0.3ms 0.0MB 33ms 0ms tinygo 0.21.0
1.go 47ms 0.1ms 2.8MB 40ms 0ms go 1.17.6

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 9.7ms 0.4ms 0.0MB 0ms 0ms tinygo 0.21.0
1.go 12ms 1.0ms 2.8MB 0ms 0ms go 1.17.6

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.go 631ms 6.4ms 16.8MB 617ms 0ms tinygo 0.21.0
1.go 828ms 17ms 73.4MB 807ms 10ms go 1.17.6
1.go 890ms 60ms 41.8MB 877ms 0ms tinygo 0.21.0
2.go 975ms 0.6ms 22.2MB 963ms 3ms go 1.17.6

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.go 119ms 0.5ms 22.0MB 103ms 3ms go 1.17.6
1.go 134ms 4.7ms 13.6MB 123ms 0ms tinygo 0.21.0
2.go 147ms 0.9ms 5.1MB 140ms 0ms tinygo 0.21.0
2.go 232ms 0.5ms 7.6MB 220ms 3ms go 1.17.6

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.go 1400ms 7.8ms 8.5MB 1383ms 3ms go 1.17.6

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.go 331ms 4.9ms 10.3MB 320ms 0ms go 1.17.6

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
8.go 25ms 1.0ms 10.1MB 13ms 0ms go 1.17.6

regex-redux

Input: 250000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.go 1702ms 18ms 26.2MB 2747ms 13ms go 1.17.6

secp256k1

Input: 5000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
0.go 402ms 1.2ms 10.3MB 397ms 7ms go 1.17.6

Input: 500

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
0.go 53ms 1.1ms 9.7MB 47ms 0ms go 1.17.6

Input: 50

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
0.go 19ms 1.1ms 11.4MB 10ms 0ms go 1.17.6

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.go 2536ms 21ms 4.8MB 4870ms 10ms go 1.17.6

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.go 658ms 7.9ms 4.8MB 1203ms 0ms go 1.17.6
4.go 2584ms 1.2ms 0.6MB 2570ms 0ms tinygo 0.21.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.go 54ms 1.9ms 2.8MB 67ms 3ms go 1.17.6
4.go 171ms 0.2ms 0.3MB 160ms 0ms tinygo 0.21.0