All Typescript benchmarks

Current benchmark data was generated on Fri Jul 01 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8171M 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

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 4204ms 486ms 179.4MB 5073ms 780ms deno 1.23.2

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 178ms 1.5ms 56.2MB 173ms 13ms deno 1.23.2

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 2369ms 68ms 70.3MB 2393ms 37ms deno 1.23.2

Input: 1000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 201ms 5.5ms 44.8MB 187ms 10ms deno 1.23.2

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts timeout 0.0ms 0.0MB 0ms 0ms deno 1.23.2

Input: 250000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 584ms 8.7ms 45.9MB 560ms 35ms deno 1.23.2

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 25ms 1.9ms 32.0MB 10ms 0ms deno 1.23.2

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 1415ms 18ms 140.5MB 1623ms 420ms deno 1.23.2
2.ts 1418ms 24ms 137.1MB 1630ms 420ms deno 1.23.2
2-tls.ts 1953ms 75ms 178.8MB 2127ms 503ms deno 1.23.2
1-http2.ts 1999ms 210ms 139.0MB 1993ms 507ms deno 1.23.2

Input: 500

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.ts 300ms 2.6ms 67.5MB 263ms 67ms deno 1.23.2
1.ts 313ms 8.7ms 71.6MB 250ms 83ms deno 1.23.2
2-tls.ts 416ms 2.3ms 76.0MB 350ms 90ms deno 1.23.2
1-http2.ts 465ms 35ms 71.6MB 333ms 73ms deno 1.23.2

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 181ms 1.1ms 64.6MB 170ms 17ms deno 1.23.2

Input: canada 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 1502ms 12ms 266.8MB 1717ms 123ms deno 1.23.2

lru

Input: 1000 1000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.ts 896ms 25ms 44.3MB 883ms 23ms deno 1.23.2
1.ts 1284ms 8.6ms 43.8MB 1273ms 3ms deno 1.23.2

Input: 1000 3000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.ts 2520ms 12ms 51.2MB 2510ms 23ms deno 1.23.2
1.ts 3804ms 45ms 52.1MB 3770ms 13ms deno 1.23.2

Input: 100 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.ts 434ms 0.6ms 38.5MB 440ms 0ms deno 1.23.2
1.ts 485ms 11ms 37.4MB 473ms 10ms deno 1.23.2

merkletrees

Input: 17

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 878ms 17ms 91.1MB 903ms 50ms deno 1.23.2

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 236ms 1.2ms 59.4MB 237ms 17ms deno 1.23.2

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
6.ts 938ms 22ms 36.4MB 933ms 0ms deno 1.23.2

Input: 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
6.ts 128ms 1.7ms 35.5MB 120ms 3ms deno 1.23.2

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
3.ts timeout 0.0ms 0.0MB 0ms 0ms deno 1.23.2

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
3.ts 1707ms 20ms 57.0MB 1720ms 70ms deno 1.23.2

secp256k1

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 4139ms 13ms 39.0MB 4160ms 37ms deno 1.23.2

Input: 500

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.ts 1081ms 21ms 38.0MB 1103ms 10ms deno 1.23.2

spectral-norm

Input: 8000

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

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
7.ts 1452ms 10ms 36.9MB 1447ms 7ms deno 1.23.2

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
7.ts 396ms 7.3ms 36.5MB 387ms 0ms deno 1.23.2