All nbody problem benchmarks

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

CONTRIBUTIONS are WELCOME!

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
cpp 0.cpp 185ms 1.2ms 1.6MB 173ms 0ms g++ 11.2.0
cpp 0.cpp 207ms 0.2ms 1.0MB 200ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
cpp 0.cpp 211ms 1.2ms 1.7MB 200ms 0ms clang++ 13.0.1
rust 7.rs 296ms 0.2ms 0.7MB 290ms 0ms rustc 1.55.0
rust 3.rs 300ms 1.1ms 0.7MB 290ms 0ms rustc 1.57.0-nightly
c 8.c 321ms 0.2ms 1.2MB 310ms 0ms gcc 11.2.0
c 8.c 334ms 4.7ms 1.4MB 323ms 0ms clang 13.0.1
c 5.c 377ms 1.1ms 1.1MB 370ms 0ms gcc 11.2.0
c 2.c 386ms 2.5ms 1.2MB 377ms 0ms gcc 11.2.0
wasm 2.rs 390ms 5.0ms 13.5MB 373ms 0ms wasmedgec 0.8.2
rust 2.rs 394ms 1.1ms 0.7MB 390ms 0ms rustc 1.55.0
cpp 1.cpp 400ms 5.5ms 1.0MB 387ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
wasm 2.rs 411ms 5.6ms 21.2MB 400ms 0ms wasmer/LLVM 2.0.0
c 5.c 422ms 4.7ms 1.2MB 407ms 0ms zigcc 0.9.0-dev.1387+6f30c8c09
c 8.c 423ms 7.2ms 1.2MB 413ms 0ms zigcc 0.9.0-dev.1387+6f30c8c09
zig 1.zig 424ms 9.5ms 0.1MB 417ms 0ms zig 0.9.0-dev.1387+6f30c8c09
c 5.c 425ms 2.5ms 1.3MB 417ms 0ms clang 13.0.1
c 2.c 426ms 1.9ms 1.1MB 413ms 0ms zigcc 0.9.0-dev.1387+6f30c8c09
cpp 1.cpp 435ms 2.0ms 1.6MB 423ms 0ms g++ 11.2.0
nim 2.nim 437ms 10ms 1.0MB 427ms 0ms nim 1.4.8
cpp 1.cpp 440ms 6.8ms 1.8MB 427ms 0ms clang++ 13.0.1
c 2.c 463ms 1.1ms 1.3MB 450ms 0ms clang 13.0.1
rust 1.rs 472ms 7.1ms 0.7MB 463ms 0ms rustc 1.55.0
lisp 4.cl 474ms 1.0ms 29.2MB 467ms 0ms sbcl 2.1.9
fortran 2.f90 475ms 2.2ms 0.0MB 470ms 0ms flang 7.0.1
swift 7.swift 487ms 0.2ms 5.1MB 480ms 0ms swift 5.5.0
wasm 1.rs 498ms 1.0ms 13.4MB 487ms 0ms wasmedgec 0.8.2
wasm 2.rs 504ms 0.7ms 10.3MB 493ms 0ms wasmtime 0.30.0
wasm 1.rs 508ms 7.6ms 21.1MB 493ms 0ms wasmer/LLVM 2.0.0
go 1.go 513ms 0.4ms 0.6MB 507ms 0ms tinygo 0.20.0
lisp 3.cl 516ms 0.3ms 31.3MB 503ms 0ms sbcl 2.1.9
fortran 2.f90 523ms 2.1ms 0.0MB 510ms 0ms gfortran 10.3.0-1ubuntu1
go 1.go 526ms 0.7ms 2.8MB 517ms 0ms go 1.17.2
wasm 1.rs 527ms 1.4ms 11.3MB 513ms 0ms wasmtime 0.30.0
wasm 1.rs 531ms 0.7ms 21.8MB 517ms 0ms wasmer/Cranelift 2.0.0
wasm 2.rs 531ms 21ms 21.9MB 517ms 0ms wasmer/Cranelift 2.0.0
ocaml 1.ml 540ms 1.9ms 2.6MB 530ms 0ms ocamlc 4.13.1
chapel 2.chpl 545ms 4.5ms 32.3MB 530ms 3ms chpl 1.25.0
lisp 2.cl 550ms 0.8ms 26.0MB 540ms 0ms sbcl 2.1.9
java 1.java 585ms 1.3ms 7.3MB 573ms 0ms graal/native 21.2.0
csharp 8.cs 592ms 12ms 27.5MB 570ms 3ms dotnet 6.0.100-rc.2.21505.57
csharp 8.cs 606ms 1.6ms 30.6MB 597ms 7ms dotnet 5.0.402
kotlin 1.kt 608ms 3.2ms 40.2MB 627ms 10ms Kotlin/jvm 17
lisp 1.cl 612ms 0.5ms 24.0MB 600ms 0ms sbcl 2.1.9
java 1.java 649ms 4.6ms 38.5MB 653ms 7ms openjdk/parallelgc 17
crystal 1.cr 651ms 9.8ms 3.5MB 640ms 0ms crystal 1.2.0
java 1.java 653ms 6.4ms 38.3MB 647ms 10ms openjdk 17
java 1.java 660ms 9.2ms 37.2MB 653ms 7ms openjdk 18
wasm 2.rs 689ms 1.0ms 45.0MB 703ms 10ms node 14.18.0
java 1.java 750ms 6.1ms 38.2MB 703ms 60ms openjdk/zgc 17
javascript 6.js 754ms 5.9ms 38.4MB 740ms 3ms node 16.11.1
javascript 6.js 769ms 4.8ms 39.0MB 753ms 7ms node 14.18.1
wasm 2.rs 793ms 2.4ms 35.7MB 877ms 10ms deno 1.15.1
typescript 6.ts 797ms 4.3ms 31.6MB 783ms 0ms deno 1.15.1
julia 7.jl 897ms 3.8ms 219.6MB 843ms 137ms julia 1.6.3
java 1.java 1003ms 21ms 85.8MB 743ms 17ms graal/jvm 11.0.12
dart 3.dart 1052ms 26ms 14.0MB 1040ms 0ms dart 2.14.4
lua 4.lua 1112ms 5.9ms 2.4MB 1103ms 0ms luajit 2.1.0-beta3
csharp 8.cs 1253ms 0.6ms 22.7MB 1240ms 3ms mono 6.12.0
wasm 1.rs 1291ms 57ms 35.9MB 1347ms 3ms deno 1.15.1
racket 2.rkt 1397ms 4.7ms 70.0MB 1350ms 33ms racket 8.2.0
kotlin 1.kt 1411ms 0.6ms 2.3MB 1400ms 0ms Kotlin/Native 1.5.31
ruby 2.rb 1471ms 14ms 569.6MB 1713ms 230ms truffleruby 21.2.0
v 1.v 1486ms 11ms 2.4MB 1473ms 0ms v 0.2.4
wasm 1.rs 1955ms 12ms 42.6MB 1967ms 27ms node 14.18.0
haxe 1.hx 3271ms 36ms 3.2MB 3260ms 0ms haxe/hashlink 1.12.0
wasm 1.rs 3955ms 2.7ms 131.8MB 4047ms 40ms wasm/graal 21.2.0
wasm 2.rs 4397ms 4.5ms 135.1MB 4497ms 47ms wasm/graal 21.2.0
javascript 6.js 4877ms 17ms 674.6MB 6300ms 323ms node/graal 14.16.1

Input: 500000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
cpp 0.cpp 21ms 0.9ms 1.7MB 10ms 0ms g++ 11.2.0
cpp 0.cpp 23ms 0.8ms 1.0MB 17ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
cpp 0.cpp 23ms 0.2ms 1.8MB 13ms 0ms clang++ 13.0.1
rust 3.rs 32ms 0.7ms 0.7MB 20ms 0ms rustc 1.57.0-nightly
rust 7.rs 32ms 0.3ms 0.7MB 20ms 0ms rustc 1.55.0
c 8.c 34ms 0.7ms 1.2MB 23ms 0ms gcc 11.2.0
c 8.c 35ms 1.6ms 1.4MB 27ms 0ms clang 13.0.1
c 5.c 40ms 0.7ms 1.3MB 30ms 0ms gcc 11.2.0
c 2.c 41ms 0.7ms 1.2MB 30ms 0ms gcc 11.2.0
cpp 1.cpp 41ms 0.6ms 1.0MB 30ms 0ms zigc++ 0.9.0-dev.1387+6f30c8c09
rust 2.rs 41ms 1.1ms 0.7MB 33ms 0ms rustc 1.55.0
c 2.c 44ms 0.1ms 1.2MB 40ms 0ms zigcc 0.9.0-dev.1387+6f30c8c09
zig 1.zig 44ms 1.4ms 0.2MB 33ms 0ms zig 0.9.0-dev.1387+6f30c8c09
c 5.c 45ms 0.5ms 1.3MB 37ms 0ms clang 13.0.1
c 5.c 45ms 0.8ms 1.1MB 37ms 0ms zigcc 0.9.0-dev.1387+6f30c8c09
nim 2.nim 46ms 1.3ms 1.0MB 40ms 0ms nim 1.4.8
cpp 1.cpp 48ms 0.1ms 1.7MB 40ms 0ms clang++ 13.0.1
cpp 1.cpp 48ms 2.9ms 1.7MB 37ms 0ms g++ 11.2.0
c 2.c 49ms 0.6ms 1.3MB 40ms 0ms clang 13.0.1
c 8.c 49ms 3.1ms 1.2MB 40ms 0ms zigcc 0.9.0-dev.1387+6f30c8c09
fortran 2.f90 50ms 3.2ms 1.2MB 40ms 0ms flang 7.0.1
rust 1.rs 50ms 1.0ms 0.7MB 40ms 0ms rustc 1.55.0
wasm 2.rs 51ms 0.6ms 21.5MB 37ms 0ms wasmer/LLVM 2.0.0
go 1.go 53ms 1.6ms 0.6MB 43ms 0ms tinygo 0.20.0
wasm 2.rs 54ms 2.7ms 13.4MB 40ms 0ms wasmedgec 0.8.2
lisp 4.cl 55ms 0.3ms 31.3MB 47ms 0ms sbcl 2.1.9
fortran 2.f90 56ms 2.8ms 0.0MB 43ms 0ms gfortran 10.3.0-1ubuntu1
go 1.go 57ms 2.6ms 2.8MB 50ms 0ms go 1.17.2
ocaml 1.ml 58ms 2.9ms 2.7MB 50ms 0ms ocamlc 4.13.1
wasm 1.rs 59ms 0.3ms 21.3MB 50ms 0ms wasmer/LLVM 2.0.0
lisp 3.cl 60ms 1.9ms 31.2MB 50ms 0ms sbcl 2.1.9
lisp 2.cl 62ms 1.3ms 28.1MB 50ms 0ms sbcl 2.1.9
swift 7.swift 64ms 19ms 5.1MB 40ms 0ms swift 5.5.0
wasm 1.rs 65ms 0.8ms 13.4MB 50ms 3ms wasmedgec 0.8.2
lisp 1.cl 68ms 1.0ms 28.1MB 53ms 0ms sbcl 2.1.9
crystal 1.cr 70ms 0.9ms 3.5MB 60ms 0ms crystal 1.2.0
chapel 2.chpl 71ms 0.8ms 32.3MB 60ms 7ms chpl 1.25.0
java 1.java 71ms 16ms 7.3MB 50ms 0ms graal/native 21.2.0
wasm 2.rs 84ms 40ms 17.9MB 90ms 3ms wasmtime 0.30.0
wasm 1.rs 84ms 40ms 30.7MB 83ms 7ms wasmer/Cranelift 2.0.0
wasm 2.rs 84ms 42ms 31.0MB 90ms 3ms wasmer/Cranelift 2.0.0
wasm 1.rs 86ms 43ms 16.4MB 93ms 0ms wasmtime 0.30.0
wasm 2.rs 110ms 1.1ms 35.7MB 160ms 13ms deno 1.15.1
lua 4.lua 115ms 0.3ms 2.4MB 103ms 0ms luajit 2.1.0-beta3
csharp 8.cs 115ms 34ms 29.4MB 80ms 7ms dotnet 6.0.100-rc.2.21505.57
dart 3.dart 116ms 11ms 14.3MB 100ms 0ms dart 2.14.4
javascript 6.js 124ms 0.7ms 38.7MB 107ms 7ms node 16.11.1
java 1.java 130ms 5.9ms 38.7MB 130ms 3ms openjdk 17
java 1.java 134ms 2.6ms 37.2MB 130ms 3ms openjdk 18
csharp 8.cs 138ms 38ms 30.6MB 103ms 10ms dotnet 5.0.402
java 1.java 139ms 3.9ms 38.5MB 133ms 17ms openjdk/parallelgc 17
javascript 6.js 144ms 2.3ms 38.3MB 127ms 3ms node 14.18.1
kotlin 1.kt 145ms 2.4ms 3.2MB 130ms 0ms Kotlin/Native 1.5.31
typescript 6.ts 145ms 59ms 30.9MB 100ms 10ms deno 1.15.1
kotlin 1.kt 147ms 5.4ms 40.2MB 163ms 10ms Kotlin/jvm 17
wasm 1.rs 151ms 1.5ms 44.0MB 170ms 10ms node 14.18.0
v 1.v 151ms 0.9ms 2.4MB 140ms 0ms v 0.2.4
csharp 8.cs 182ms 17ms 22.4MB 160ms 3ms mono 6.12.0
wasm 1.rs 185ms 50ms 35.7MB 247ms 10ms deno 1.15.1
wasm 2.rs 191ms 48ms 43.9MB 213ms 20ms node 14.18.0
java 1.java 201ms 7.5ms 39.9MB 143ms 63ms openjdk/zgc 17
racket 2.rkt 275ms 2.0ms 69.8MB 217ms 43ms racket 8.2.0
haxe 1.hx 330ms 0.6ms 3.2MB 320ms 0ms haxe/hashlink 1.12.0
java 1.java 484ms 3.0ms 88.9MB 203ms 37ms graal/jvm 11.0.12
python 1.py 567ms 12ms 73.9MB 537ms 10ms pypy 3.7.10
ruby 2.rb 595ms 11ms 568.9MB 853ms 213ms truffleruby 21.2.0
julia 7.jl 619ms 8.8ms 219.2MB 577ms 123ms julia 1.6.3
wasm 1.rs 716ms 32ms 128.8MB 800ms 40ms wasm/graal 21.2.0
wasm 2.rs 766ms 2.9ms 135.0MB 863ms 47ms wasm/graal 21.2.0
lua 4.lua 1148ms 14ms 1.3MB 1137ms 0ms lua 5.4.3
javascript 6.js 1654ms 14ms 670.3MB 2780ms 330ms node/graal 14.16.1
ruby 2.rb 2588ms 56ms 103.5MB 4663ms 183ms ruby/jit 3.0.2
perl 2.pl 3130ms 12ms 6.3MB 3117ms 0ms perl 5.34.0
ruby 2.rb 3292ms 29ms 29.8MB 3267ms 13ms ruby 3.0.2
wren 1.wren 4578ms 31ms 140.7MB 4470ms 97ms wren 0.4.0