Chapel VS Typescript benchmarks

Current benchmark data was generated on Tue Apr 01 2025, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][4 cores] AMD EPYC 7763 64-Core Processor (Model 1)

* -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 1088ms 10ms 480.2MB 1010ms 223ms deno 2.2.6
chapel 4.chpl 1953ms 14ms 60.3MB 1947ms 0ms chpl 1.31.0
chapel 3.chpl 2095ms 40ms 62.4MB 2087ms 0ms chpl 1.31.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 135ms 8.7ms 76.9MB 133ms 27ms deno 2.2.6
chapel 4.chpl 186ms 1.9ms 32.3MB 180ms 0ms chpl 1.31.0
chapel 3.chpl 188ms 1.5ms 30.3MB 180ms 0ms 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 1168ms 1.9ms 120.6MB 1160ms 60ms deno 2.2.6
chapel 1-m.chpl 2339ms 24ms 506.1MB 4557ms 70ms chpl 1.31.0

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
typescript 1.ts 147ms 2.8ms 70.7MB 127ms 23ms deno 2.2.6
chapel 1-m.chpl 187ms 5.2ms 470.8MB 303ms 40ms chpl 1.31.0

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 74ms 1.4ms 32.5MB 70ms 0ms chpl 1.31.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 34ms 0.4ms 30.4MB 27ms 0ms 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 107ms 0.6ms 28.3MB 190ms 0ms chpl 1.31.0
typescript 1.ts 2058ms 7.8ms 57.5MB 1927ms 137ms deno 2.2.6

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 5.chpl 23ms 0.3ms 28.4MB 20ms 0ms chpl 1.31.0
typescript 1.ts 243ms 1.2ms 57.6MB 220ms 27ms deno 2.2.6

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 11ms 0.5ms 28.8MB 0ms 0ms chpl 1.31.0
typescript 1.ts 26ms 0.6ms 44.5MB 10ms 6ms deno 2.2.6

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 749ms 1.1ms 85.2MB 1413ms 7ms chpl 1.31.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3-m.chpl 119ms 1.7ms 88.9MB 207ms 3ms chpl 1.31.0

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 323ms 1.6ms 28.7MB 317ms 0ms chpl 1.31.0
typescript 6.ts 463ms 3.5ms 56.1MB 447ms 10ms deno 2.2.6

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 45ms 0.3ms 28.9MB 40ms 0ms chpl 1.31.0
typescript 6.ts 78ms 0.4ms 54.6MB 60ms 10ms deno 2.2.6

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 447ms 2.7ms 30.3MB 440ms 0ms chpl 1.31.0
typescript 3.ts timeout 0.0ms 132.4MB 4970ms 57ms deno 2.2.6

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 2.chpl 113ms 1.4ms 30.4MB 110ms 0ms chpl 1.31.0
typescript 3.ts 1247ms 11ms 77.1MB 1187ms 77ms deno 2.2.6

regex-redux

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 1397ms 6.2ms 222.1MB 1357ms 37ms chpl 1.31.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 3.chpl 163ms 2.5ms 49.0MB 143ms 13ms chpl 1.31.0

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 1193ms 1.4ms 29.0MB 1183ms 0ms chpl 1.31.0
typescript 1.ts 1925ms 0.7ms 57.6MB 1933ms 13ms deno 2.2.6

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1.chpl 319ms 12ms 29.1MB 313ms 0ms chpl 1.31.0
typescript 1.ts 526ms 1.2ms 56.5MB 527ms 13ms deno 2.2.6

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 1916ms 0.5ms 28.9MB 3807ms 0ms chpl 1.31.0
chapel 1.chpl 3718ms 7.3ms 28.8MB 3710ms 0ms chpl 1.31.0
typescript 7.ts 4050ms 12ms 56.5MB 4033ms 10ms deno 2.2.6

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 491ms 1.4ms 28.8MB 957ms 0ms chpl 1.31.0
chapel 1.chpl 941ms 3.3ms 28.8MB 933ms 0ms chpl 1.31.0
typescript 7.ts 1038ms 1.2ms 55.9MB 1020ms 7ms deno 2.2.6

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
chapel 1-m.chpl 134ms 1.5ms 28.9MB 240ms 0ms chpl 1.31.0
chapel 1.chpl 248ms 0.5ms 28.9MB 240ms 0ms chpl 1.31.0
typescript 7.ts 289ms 4.8ms 53.2MB 270ms 10ms deno 2.2.6