Typescript 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
typescript 1.ts 4128ms 174ms 145.0MB 4027ms 617ms deno 1.28.3

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 193ms 5.4ms 59.2MB 210ms 17ms deno 1.28.3

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 2035ms 49ms 72.9MB 2020ms 17ms deno 1.28.3

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 169ms 2.2ms 45.0MB 153ms 10ms deno 1.28.3

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 2082ms 24ms 38.7MB 1980ms 100ms deno 1.28.3

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 244ms 6.0ms 39.0MB 240ms 7ms deno 1.28.3

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
typescript 1.ts 25ms 3.9ms 31.2MB 6ms 6ms deno 1.28.3

http-server

Input: 3000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 1119ms 16ms 132.9MB 1310ms 320ms deno 1.28.3
typescript 2-tls.ts 1304ms 78ms 145.3MB 1390ms 387ms deno 1.28.3
typescript 2.ts 1395ms 167ms 135.4MB 1220ms 357ms deno 1.28.3
typescript 1-http2.ts 1457ms 55ms 140.0MB 1577ms 393ms deno 1.28.3

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 230ms 16ms 73.9MB 157ms 57ms deno 1.28.3
typescript 1.ts 231ms 4.9ms 74.0MB 140ms 73ms deno 1.28.3
typescript 1-http2.ts 272ms 2.5ms 71.9MB 187ms 70ms deno 1.28.3
typescript 2-tls.ts 382ms 14ms 79.7MB 293ms 70ms deno 1.28.3

json-serde

Input: sample 5000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 388ms 4.3ms 91.3MB 387ms 27ms deno 1.28.3

Input: canada 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 3562ms 13ms 383.4MB 3660ms 193ms deno 1.28.3

lru

Input: 1000 1000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 381ms 2.8ms 43.8MB 377ms 7ms deno 1.28.3
typescript 1.ts 710ms 2.4ms 45.4MB 690ms 10ms deno 1.28.3

Input: 1000 3000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 1057ms 2.8ms 45.8MB 1043ms 10ms deno 1.28.3
typescript 1.ts 2045ms 3.4ms 46.7MB 2027ms 10ms deno 1.28.3

Input: 100 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 197ms 1.1ms 40.4MB 193ms 3ms deno 1.28.3
typescript 1.ts 224ms 3.0ms 38.2MB 210ms 3ms deno 1.28.3

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 705ms 11ms 92.2MB 720ms 23ms deno 1.28.3

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 183ms 1.7ms 59.3MB 183ms 10ms deno 1.28.3

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 6.ts 741ms 12ms 41.0MB 723ms 7ms deno 1.28.3

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 6.ts 107ms 0.2ms 38.3MB 87ms 10ms deno 1.28.3

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
acton 1.act 4902ms 85ms 7.8MB 4477ms 777ms actonc 0.14.2
typescript 3.ts timeout 0.0ms 0.0MB 0ms 0ms deno 1.28.3

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 3.ts 1436ms 24ms 60.0MB 1393ms 60ms deno 1.28.3
acton 1.act 1475ms 7.3ms 6.4MB 1327ms 277ms actonc 0.14.2

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 3052ms 27ms 40.0MB 3027ms 10ms deno 1.28.3

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 793ms 6.1ms 38.5MB 783ms 13ms deno 1.28.3

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 7.ts timeout 0.0ms 0.0MB 0ms 0ms deno 1.28.3

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 7.ts 1351ms 1.8ms 38.2MB 1340ms 0ms deno 1.28.3

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 7.ts 409ms 74ms 39.8MB 353ms 10ms deno 1.28.3