Dart VS Acton benchmarks

Current benchmark data was generated on Fri Dec 09 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz (Model 85)

* -m in a file name stands for multi-threading or multi-processing

* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)

* -ffi in a file name stands for non-stdlib FFI usage

* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)

binarytrees

Input: 18

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 1085ms 11ms 85.4MB 1053ms 33ms dart/exe 2.18.5

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 107ms 3.3ms 50.8MB 77ms 17ms dart/exe 2.18.5

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart timeout 0.0ms 0.0MB 0ms 0ms dart/exe 2.18.5

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 548ms 4.4ms 15.3MB 517ms 17ms dart/exe 2.18.5

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 548ms 11ms 7.4MB 487ms 43ms actonc 0.14.2
dart 1.dart timeout 0.0ms 0.0MB 0ms 0ms dart/exe 2.18.5

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 202ms 1.2ms 5.3MB 183ms 3ms actonc 0.14.2
dart 1.dart 1721ms 1.1ms 15.6MB 1703ms 7ms dart/exe 2.18.5

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 4575ms 3.7ms 12.1MB 4560ms 0ms dart/exe 2.18.5

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 368ms 2.0ms 11.8MB 353ms 0ms dart/exe 2.18.5

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 485ms 1.3ms 14.8MB 470ms 0ms dart/exe 2.18.5

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 1059ms 1.4ms 16.6MB 43ms 0ms dart/exe 2.18.5

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 5.2ms 3.9ms 3.1MB 0ms 0ms actonc 0.14.2
dart 1.dart 808ms 448ms 12.7MB 0ms 0ms dart/exe 2.18.5

http-server

Input: 3000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 3090ms 29ms 118.2MB 1290ms 813ms dart/exe 2.18.5
dart 1.dart 3934ms 28ms 95.6MB 1187ms 640ms dart/exe 2.18.5

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 953ms 580ms 57.6MB 200ms 153ms dart/exe 2.18.5
dart 1.dart 1485ms 135ms 55.6MB 163ms 113ms dart/exe 2.18.5

json-serde

Input: sample 5000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 278ms 0.4ms 57.8MB 250ms 17ms dart/exe 2.18.5

Input: canada 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 2206ms 28ms 300.9MB 2240ms 150ms dart/exe 2.18.5

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 3-m.dart 2356ms 58ms 253.7MB 4123ms 123ms dart/exe 2.18.5

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 3-m.dart 393ms 8.2ms 196.0MB 600ms 80ms dart/exe 2.18.5

lru

Input: 1000 1000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 215ms 1.0ms 14.7MB 200ms 0ms dart/exe 2.18.5
dart 1.dart 988ms 1.6ms 16.7MB 970ms 7ms dart/exe 2.18.5

Input: 1000 3000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 616ms 7.6ms 14.9MB 597ms 3ms dart/exe 2.18.5
dart 1.dart 2954ms 6.9ms 16.8MB 2927ms 17ms dart/exe 2.18.5

Input: 100 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 102ms 2.2ms 16.5MB 83ms 0ms dart/exe 2.18.5
dart 1.dart 168ms 0.8ms 16.6MB 157ms 3ms dart/exe 2.18.5

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 523ms 14ms 69.3MB 493ms 30ms dart/exe 2.18.5

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 128ms 0.6ms 49.4MB 107ms 13ms dart/exe 2.18.5

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 3.dart 611ms 15ms 13.9MB 600ms 0ms dart/exe 2.18.5

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 3.dart 72ms 1.2ms 13.8MB 53ms 0ms dart/exe 2.18.5

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 1697ms 3.2ms 20.0MB 1647ms 43ms dart/exe 2.18.5
acton 1.act 4902ms 85ms 7.8MB 4477ms 777ms actonc 0.14.2

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 2.dart 426ms 1.3ms 22.4MB 380ms 27ms dart/exe 2.18.5
acton 1.act 1475ms 7.3ms 6.4MB 1327ms 277ms actonc 0.14.2

regex-redux

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart timeout 0.0ms 0.0MB 0ms 0ms dart/exe 2.18.5

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 738ms 4.0ms 53.6MB 703ms 17ms dart/exe 2.18.5

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart timeout 0.0ms 0.0MB 0ms 0ms dart/exe 2.18.5

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 1314ms 1.5ms 12.0MB 1300ms 0ms dart/exe 2.18.5

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
dart 1.dart 337ms 1.4ms 12.2MB 320ms 0ms dart/exe 2.18.5