Typescript VS Chapel benchmarks

Current benchmark data was generated on Thu Jul 13 2023, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (Model 106)

* -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 1826ms 4.2ms 180.2MB 2223ms 163ms deno 1.35.1
chapel 4.chpl 2278ms 2.2ms 64.2MB 2247ms 20ms chpl 1.31.0
chapel 3.chpl 2393ms 13ms 50.2MB 2373ms 10ms chpl 1.31.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 169ms 6.2ms 84.1MB 153ms 20ms deno 1.35.1
chapel 4.chpl 220ms 1.8ms 28.0MB 203ms 7ms chpl 1.31.0
chapel 3.chpl 225ms 0.7ms 24.1MB 207ms 7ms chpl 1.31.0

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 2091ms 66ms 78.7MB 2083ms 30ms deno 1.35.1
chapel 1-m.chpl 4044ms 31ms 83.4MB 7847ms 37ms chpl 1.31.0

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 189ms 2.7ms 60.7MB 173ms 17ms deno 1.35.1
chapel 1-m.chpl 286ms 15ms 54.0MB 510ms 7ms chpl 1.31.0

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5-m.chpl 148ms 2.2ms 32.0MB 253ms 0ms chpl 1.31.0
typescript 1.ts 2869ms 35ms 46.1MB 2760ms 107ms deno 1.35.1

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5.chpl 32ms 1.1ms 32.0MB 30ms 0ms chpl 1.31.0
typescript 1.ts 323ms 0.6ms 45.9MB 310ms 13ms deno 1.35.1

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 17ms 0.6ms 32.3MB 10ms 0ms chpl 1.31.0
typescript 1.ts 33ms 0.9ms 40.0MB 20ms 0ms deno 1.35.1

http-server

Input: 3000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 985ms 36ms 147.2MB 957ms 303ms deno 1.35.1
typescript 1.ts 1125ms 205ms 154.1MB 977ms 283ms deno 1.35.1
typescript 2-tls.ts 1177ms 11ms 153.6MB 1137ms 283ms deno 1.35.1
typescript 1-http2.ts 1185ms 36ms 148.2MB 1143ms 317ms deno 1.35.1

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 216ms 4.3ms 80.5MB 147ms 53ms deno 1.35.1
typescript 1.ts 249ms 8.5ms 82.3MB 167ms 40ms deno 1.35.1
typescript 1-http2.ts 275ms 8.4ms 80.3MB 183ms 53ms deno 1.35.1
typescript 2-tls.ts 405ms 5.6ms 83.5MB 323ms 60ms deno 1.35.1

json-serde

Input: sample 5000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 214ms 4.6ms 85.0MB 203ms 27ms deno 1.35.1

Input: canada 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 1718ms 3.6ms 414.3MB 1740ms 130ms deno 1.35.1

lru

Input: 1000 1000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 365ms 3.7ms 52.8MB 353ms 7ms deno 1.35.1
typescript 1.ts 726ms 9.1ms 50.6MB 693ms 7ms deno 1.35.1

Input: 1000 3000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 998ms 9.7ms 59.8MB 987ms 17ms deno 1.35.1
typescript 1.ts 2042ms 12ms 57.5MB 2030ms 3ms deno 1.35.1

Input: 100 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 2.ts 187ms 3.4ms 47.4MB 180ms 7ms deno 1.35.1
typescript 1.ts 237ms 12ms 48.1MB 200ms 7ms deno 1.35.1

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 710ms 9.5ms 118.2MB 740ms 40ms deno 1.35.1

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 208ms 1.9ms 85.2MB 200ms 20ms deno 1.35.1

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 363ms 1.0ms 32.3MB 353ms 3ms chpl 1.31.0
typescript 6.ts 595ms 1.1ms 45.0MB 580ms 0ms deno 1.35.1

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 55ms 1.2ms 32.3MB 47ms 3ms chpl 1.31.0
typescript 6.ts 97ms 5.4ms 45.7MB 83ms 10ms deno 1.35.1

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 596ms 3.6ms 34.1MB 577ms 3ms chpl 1.31.0
typescript 3.ts timeout 0.0ms 87.8MB 4970ms 27ms deno 1.35.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 156ms 3.1ms 34.1MB 147ms 0ms chpl 1.31.0
typescript 3.ts 1520ms 21ms 64.7MB 1457ms 57ms deno 1.35.1

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 1543ms 3.8ms 32.4MB 1533ms 0ms chpl 1.31.0
typescript 1.ts 2497ms 11ms 46.1MB 2493ms 7ms deno 1.35.1

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 404ms 1.8ms 32.4MB 383ms 7ms chpl 1.31.0
typescript 1.ts 663ms 2.3ms 44.7MB 670ms 3ms deno 1.35.1

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 2241ms 4.7ms 32.2MB 4403ms 3ms chpl 1.31.0
chapel 1.chpl 4378ms 1.3ms 32.3MB 4367ms 3ms chpl 1.31.0
typescript 7.ts timeout 0.0ms 46.8MB 4957ms 10ms deno 1.35.1

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 592ms 12ms 32.2MB 1117ms 0ms chpl 1.31.0
chapel 1.chpl 1114ms 1.0ms 32.3MB 1100ms 0ms chpl 1.31.0
typescript 7.ts 1682ms 42ms 46.2MB 1667ms 3ms deno 1.35.1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 165ms 1.0ms 32.2MB 287ms 3ms chpl 1.31.0
chapel 1.chpl 298ms 4.4ms 32.3MB 290ms 0ms chpl 1.31.0
typescript 7.ts 504ms 42ms 46.6MB 440ms 13ms deno 1.35.1