Skip to content

Releases: acheronfail/count

207

27 Dec 09:57

Choose a tag to compare

Execution time Binary size1 Max Memory Usage
# name mean
1 rust 289.24987ms
2 bun 300.25360ms
3 assembly 311.26029ms
4 zig 311.36027ms
5 pascal 311.74092ms
6 vala 311.86989ms
7 nim 311.96070ms
8 c-gcc 312.04906ms
9 go 312.33757ms
10 cpp-gcc 312.74467ms
11 cpp-clang 312.84137ms
12 fortran 313.25757ms
13 c-clang 313.36822ms
14 swiftc 314.18360ms
15 pony 317.09557ms
16 node 335.73949ms
17 deno 343.39994ms
18 java 344.82254ms
19 kotlin 353.40522ms
20 coffeescript 377.78533ms
21 csharp-native 399.08564ms
22 csharp 482.85926ms
23 scala 702.38211ms
24 erlang 2.26150s
25 php 3.30537s
26 crystal 3.31744s
27 forth 4.74916s
28 lua 4.83636s
29 ocaml 6.64227s
30 ruby 12.28955s
31 haskell 17.09214s
32 cobol 17.60791s
33 swift 18.78283s
34 perl 28.02103s
35 python3 47.83257s
36 smalltalk 1.86393m
37 prolog 2.87337m
38 julia 9.08096m

binary:

# name size
1 assembly 247.0000000 B
2 c-clang 7.9920000 kB
3 cpp-clang 8.3040000 kB
4 cobol 14.8080000 kB
5 c-gcc 16.0800000 kB
6 vala 16.1280000 kB
7 cpp-gcc 16.4640000 kB
8 fortran 16.5040000 kB
9 swiftc 22.5200000 kB
10 nim 161.3360000 kB
11 pony 186.7120000 kB
12 prolog 221.6430000 kB
13 pascal 513.8880000 kB
14 zig 950.2720000 kB
15 go 2.2214650 MB
16 rust 3.8819040 MB
17 haskell 10.1607360 MB
18 csharp-native 64.2621360 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 864.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1312940 MB
# name rss
1 assembly 12.2880000 kB
2 zig 49.1520000 kB
3 pascal 532.4800000 kB
4 c-clang 1.7203200 MB
5 c-gcc 1.7653760 MB
6 vala 1.7940480 MB
7 nim 1.7981440 MB
8 rust 2.3470080 MB
9 fortran 2.5886720 MB
10 lua 2.7566080 MB
11 forth 3.1457280 MB
12 cpp-gcc 3.8092800 MB
13 cpp-clang 3.8502400 MB
14 cobol 4.8373760 MB
15 perl 5.0339840 MB
16 go 7.4711040 MB
17 smalltalk 8.9620480 MB
18 python3 9.1504640 MB
19 swiftc 9.2037120 MB
20 prolog 10.0802560 MB
21 haskell 11.2558080 MB
22 ocaml 13.2055040 MB
23 php 15.5156480 MB
24 pony 19.5461120 MB
25 csharp 20.4349440 MB
26 csharp-native 25.3870080 MB
27 ruby 26.7100160 MB
28 bun 42.9383680 MB
29 node 46.2888960 MB
30 coffeescript 51.1180800 MB
31 deno 56.0455680 MB
32 erlang 59.2035840 MB
33 java 90.7182080 MB
34 kotlin 93.4993920 MB
35 swift 125.4031360 MB
36 crystal 271.2862720 MB
37 julia 339.1815680 MB
38 scala 372.9489920 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name cycles instructions
assembly unsupported in ci unsupported in ci
bun unsupported in ci unsupported in ci
c-clang unsupported in ci unsupported in ci
c-gcc unsupported in ci unsupported in ci
cobol unsupported in ci unsupported in ci
coffeescript unsupported in ci unsupported in ci
cpp-clang unsupported in ci unsupported in ci
cpp-gcc unsupported in ci unsupported in ci
crystal unsupported in ci unsupported in ci
csharp-native unsupported in ci unsupported in ci
csharp unsupported in ci unsupported in ci
deno unsupported in ci unsupported in ci
erlang unsupported in ci unsupported in ci
forth unsupported in ci unsupported in ci
fortran unsupported in ci unsupported in ci
go unsupported in ci unsupported in ci
haskell unsupported in ci unsupported in ci
java unsupported in ci unsupported in ci
julia unsupported in ci unsupported in ci
kotlin unsupported in ci unsupported in ci
lua unsupported in ci unsupported in ci
nim unsupported in ci unsupported in ci
node unsupported in ci unsupported in ci
ocaml unsupported in ci unsupported in ci
pascal unsupported in ci unsupported in ci
perl unsupported in ci unsupported in ci
php unsupported in ci unsupported in ci
pony unsupported in ci unsupported in ci
prolog unsupported in ci unsupported in ci
python3 unsupported in ci unsupported in ci
ruby unsupported in ci unsupported in ci
rust unsupported in ci unsupported in ci
scala unsupported in ci unsupported in ci
smalltalk unsupported in ci unsupported in ci
swift unsupported in ci unsupported in ci
swiftc unsupported in ci unsupported in ci
vala unsupported in ci unsupported in ci
zig unsupported in ci unsupported in ci

Note that cycles are counted with perf and are only estimates of the actual CPU cycles used, as this can vary.

name command version
assembly ./count 1000000000 NASM version 2.16.03
bun bun run count.js 1000000000 1.3.5
c-clang ./count 1000000000 clang version 17.0.0 (https://github.com/swiftlang/llvm-project.git 9784760565e8cae0bc0b97bad69aaf498408dc3d)
c-gcc ./count 1000000000 gcc (Ubuntu 14.2.0-19ubuntu2) 14.2.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 17.0.0 (https://github.com/swiftlang/llvm-project.git 9784760565e8cae0bc0b97bad69aaf498408dc3d)
cpp-gcc ./count 1000000000 g++ (Ubuntu 14.2.0-19ubuntu2) 14.2.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.2 [fda656c71] (2024-01-18) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.12.0.199
Mono JIT compiler version 6.12.0.199 (tarball Tue Mar 4 00:14:25 UTC 2025)
csharp-native `./out/cou...
Read more

206

23 Dec 01:21

Choose a tag to compare

206
Execution time Binary size1 Max Memory Usage
# name mean
1 nim 288.75856ms
2 swiftc 291.16268ms
3 assembly 311.33391ms
4 zig 311.38980ms
5 pascal 311.59312ms
6 vala 311.85677ms
7 c-clang 311.97524ms
8 rust 312.19934ms
9 fortran 312.32007ms
10 go 312.38171ms
11 c-gcc 312.40850ms
12 cpp-gcc 312.65846ms
13 cpp-clang 312.78208ms
14 pony 317.96557ms
15 csharp-native 322.45292ms
16 bun 323.84565ms
17 node 333.96732ms
18 deno 343.32310ms
19 java 345.45783ms
20 kotlin 355.71590ms
21 coffeescript 390.58127ms
22 csharp 483.05313ms
23 scala 711.98148ms
24 crystal 1.76939s
25 erlang 2.26406s
26 php 3.07279s
27 ocaml 4.07424s
28 forth 4.14469s
29 lua 4.84354s
30 haskell 11.43176s
31 ruby 12.25320s
32 cobol 17.30245s
33 swift 18.79121s
34 perl 28.70489s
35 python3 44.13173s
36 smalltalk 1.88690m
37 prolog 3.15032m
38 julia 9.01259m

binary:

# name size
1 assembly 247.0000000 B
2 c-clang 7.9920000 kB
3 cpp-clang 8.3040000 kB
4 cobol 14.8080000 kB
5 c-gcc 16.0800000 kB
6 vala 16.1280000 kB
7 cpp-gcc 16.4640000 kB
8 fortran 16.5040000 kB
9 swiftc 22.5200000 kB
10 nim 161.3360000 kB
11 pony 186.7120000 kB
12 prolog 221.6410000 kB
13 pascal 513.8880000 kB
14 zig 950.2720000 kB
15 go 2.2214650 MB
16 rust 3.8819040 MB
17 haskell 10.1607360 MB
18 csharp-native 64.2621360 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 864.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1312940 MB
# name rss
1 assembly 12.2880000 kB
2 zig 53.2480000 kB
3 pascal 532.4800000 kB
4 c-clang 1.7408000 MB
5 vala 1.7571840 MB
6 c-gcc 1.8268160 MB
7 nim 1.8923520 MB
8 rust 2.2282240 MB
9 fortran 2.6542080 MB
10 lua 2.8753920 MB
11 forth 3.3628160 MB
12 cpp-gcc 3.8256640 MB
13 cpp-clang 3.8830080 MB
14 cobol 4.8332800 MB
15 perl 5.0790400 MB
16 go 7.4711040 MB
17 python3 9.1504640 MB
18 swiftc 9.2979200 MB
19 prolog 9.9532800 MB
20 haskell 11.3254400 MB
21 smalltalk 12.0586240 MB
22 ocaml 13.1768320 MB
23 php 15.3313280 MB
24 pony 19.7304320 MB
25 csharp 20.3735040 MB
26 csharp-native 25.5467520 MB
27 ruby 26.8738560 MB
28 bun 42.8605440 MB
29 node 46.3134720 MB
30 coffeescript 48.6850560 MB
31 deno 55.7752320 MB
32 erlang 58.6956800 MB
33 java 91.3448960 MB
34 kotlin 94.2284800 MB
35 swift 125.9110400 MB
36 crystal 269.8362880 MB
37 julia 338.8497920 MB
38 scala 372.9162240 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name cycles instructions
assembly 1002232685 2000592345
zig 1002846223 2000621245
pascal 1002949384 2500834039
nim 1003141374 2001165236
rust 1003333219 2001563062
fortran 1005661867 2001763775
c-gcc 1006303714 2001150202
c-clang 1006965990 2001192234
go 1008471355 2503048210
swiftc 1009750642 2007897043
vala 1010121646 2001163510
cpp-gcc 1011261409 2003702219
cpp-clang 1011539602 2003353403
pony 1087341052 2145376605
bun 1103560852 2052320632
java 1123997452 3606493211
csharp-native 1129231818 2119267476
node 1166430694 2749755389
kotlin 1169869328 3662560932
deno 1204266107 2680113644
coffeescript 1382609085 3041963734
csharp 1623426022 4053452150
scala 3165473362 5765308980
erlang 7337831430 18163403072
crystal 11471409940 14198776674
php 13135956058 38045614136
forth 14348209907 37520729537
ocaml 14521120495 58790845610
lua 15580763164 57008963481
ruby 28744009743 87811139752
haskell 43542875128 121917053539
swift 64472295727 194105415158
cobol 70882765627 250039444719
perl 104575412587 345048870971
python3 196138400422 596139375170
smalltalk 413078558914 1121693192245
prolog 691855668389 1626314840560
julia 2187841424990 6075026660007
tcl 2602665802379 6835520619645

Note that cycles are counted with perf and are only estimates of the actual CPU cycles used, as this can vary.

name command version
assembly ./count 1000000000 NASM version 2.16.03
bun bun run count.js 1000000000 1.3.5
c-clang ./count 1000000000 clang version 17.0.0 (https://github.com/swiftlang/llvm-project.git 9784760565e8cae0bc0b97bad69aaf498408dc3d)
c-gcc ./count 1000000000 gcc (Ubuntu 14.2.0-19ubuntu2) 14.2.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 17.0.0 (https://github.com/swiftlang/llvm-project.git 9784760565e8cae0bc0b97bad69aaf498408dc3d)
cpp-gcc ./count 1000000000 g++ (Ubuntu 14.2.0-19ubuntu2) 14.2.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.2 [fda656c71] (2024-01-18) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.12.0.199
Mono JIT compiler version 6.12.0.199 (tarball Tue Mar 4 00:14:25 UTC 2025)
csharp-native ./out/count 1000000000 10.0.100 ...
Read more

205

23 Dec 00:49

Choose a tag to compare

205
Execution time Binary size1 Max Memory Usage
# name mean
1 swiftc 291.20561ms
2 pascal 311.43539ms
3 assembly 311.55173ms
4 zig 311.63640ms
5 nim 311.71320ms
6 c-clang 311.75915ms
7 rust 311.95040ms
8 go 312.35223ms
9 cpp-clang 312.37517ms
10 fortran 312.62862ms
11 cpp-gcc 312.76057ms
12 vala 312.78666ms
13 c-gcc 312.96222ms
14 pony 320.27266ms
15 bun 330.84880ms
16 node 334.02643ms
17 deno 343.61749ms
18 java 346.11787ms
19 kotlin 353.39075ms
20 coffeescript 385.10616ms
21 csharp-native 394.18483ms
22 csharp 484.62516ms
23 scala 689.26252ms
24 crystal 1.82514s
25 erlang 2.25158s
26 php 3.07284s
27 ocaml 4.07413s
28 forth 4.79565s
29 lua 4.83635s
30 ruby 12.24300s
31 cobol 17.45764s
32 haskell 17.76209s
33 swift 18.79798s
34 perl 28.10777s
35 python3 47.73915s
36 smalltalk 1.87796m
37 prolog 2.86186m
38 julia 9.08745m

binary:

# name size
1 assembly 247.0000000 B
2 c-clang 7.9920000 kB
3 cpp-clang 8.3040000 kB
4 cobol 14.8080000 kB
5 c-gcc 16.0800000 kB
6 vala 16.1280000 kB
7 cpp-gcc 16.4640000 kB
8 fortran 16.5040000 kB
9 swiftc 22.5200000 kB
10 nim 161.3360000 kB
11 pony 186.7120000 kB
12 prolog 221.7180000 kB
13 pascal 513.8880000 kB
14 zig 950.2720000 kB
15 go 2.2214650 MB
16 rust 3.8819040 MB
17 haskell 10.1607360 MB
18 csharp-native 64.2621360 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 864.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1312940 MB
# name rss
1 assembly 12.2880000 kB
2 zig 53.2480000 kB
3 pascal 532.4800000 kB
4 c-gcc 1.7326080 MB
5 nim 1.7571840 MB
6 vala 1.7981440 MB
7 c-clang 1.8391040 MB
8 rust 2.2282240 MB
9 fortran 2.5968640 MB
10 lua 2.7648000 MB
11 forth 3.1825920 MB
12 cpp-clang 3.7806080 MB
13 cpp-gcc 3.8871040 MB
14 cobol 4.8701440 MB
15 perl 5.0012160 MB
16 go 7.4711040 MB
17 smalltalk 8.9415680 MB
18 python3 9.2528640 MB
19 swiftc 9.3675520 MB
20 prolog 10.0843520 MB
21 haskell 11.2599040 MB
22 ocaml 13.1686400 MB
23 php 15.1879680 MB
24 pony 19.5461120 MB
25 csharp 22.6877440 MB
26 csharp-native 25.0716160 MB
27 ruby 26.7345920 MB
28 bun 42.7991040 MB
29 node 46.3011840 MB
30 coffeescript 48.7710720 MB
31 deno 55.5171840 MB
32 erlang 57.7495040 MB
33 java 90.4519680 MB
34 kotlin 93.3396480 MB
35 swift 125.4481920 MB
36 crystal 270.6432000 MB
37 scala 283.4063360 MB
38 julia 336.7198720 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name cycles instructions
assembly
bun
c-clang
c-gcc
cobol
coffeescript
cpp-clang
cpp-gcc
crystal
csharp-native
csharp
deno
erlang
forth
fortran
go
haskell
java
julia
kotlin
lua
nim
node
ocaml
pascal
perl
php
pony
prolog
python3
ruby
rust
scala
smalltalk
swift
swiftc
vala
zig

Note that cycles are counted with perf and are only estimates of the actual CPU cycles used, as this can vary.

name command version
assembly ./count 1000000000 NASM version 2.16.03
bun bun run count.js 1000000000 1.3.5
c-clang ./count 1000000000 clang version 17.0.0 (https://github.com/swiftlang/llvm-project.git 9784760565e8cae0bc0b97bad69aaf498408dc3d)
c-gcc ./count 1000000000 gcc (Ubuntu 14.2.0-19ubuntu2) 14.2.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 17.0.0 (https://github.com/swiftlang/llvm-project.git 9784760565e8cae0bc0b97bad69aaf498408dc3d)
cpp-gcc ./count 1000000000 g++ (Ubuntu 14.2.0-19ubuntu2) 14.2.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.2 [fda656c71] (2024-01-18) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.12.0.199
Mono JIT compiler version 6.12.0.199 (tarball Tue Mar 4 00:14:25 UTC 2025)
csharp-native ./out/count 1000000000 10.0.100
deno deno run count.deno 1000000000 deno 2.6.3 (stable, release, x86_64-unknown-linux-gnu) v8 14.2.231.17-rusty typescript 5.9.2
erlang sh /usr/bin/erl -noshell -s count start 1000000000 27.3
forth ...
Read more

r1

23 Dec 10:09

Choose a tag to compare

r1

This was run on:

  • Tue 23 Dec 2025 10:09:36 UTC
  • Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  • Arch Linux (6.12.63-1-lts)
  • Running in Single User Mode
Execution time Binary size1 Max Memory Usage
# name mean
1 assembly 234.93116ms
2 c-gcc 235.11304ms
3 c-clang 235.22636ms
4 rust 235.67078ms
5 vala 243.57438ms
6 go 243.83863ms
7 fortran 244.17057ms
8 cpp-clang 244.79937ms
9 zig 245.06715ms
10 cpp-gcc 245.68646ms
11 nim 246.20307ms
12 swiftc 247.21663ms
13 bun 249.02891ms
14 pony 283.03917ms
15 java 284.02779ms
16 csharp 292.00851ms
17 kotlin 302.50898ms
18 deno 303.39329ms
19 csharp-native 314.87875ms
20 node 417.13272ms
21 coffeescript 470.76358ms
22 scala 661.10531ms
23 pascal 834.10755ms
24 erlang 2.38423s
25 crystal 2.58005s
26 php 3.58302s
27 lua 3.75523s
28 ocaml 3.80457s
29 forth 5.32027s
30 ruby 8.29236s
31 haskell 11.99170s
32 swift 17.68221s
33 cobol 18.17931s
34 perl 26.99107s
35 python3 55.35151s
36 smalltalk 1.69787m
37 prolog 1.95141m
38 julia 9.39754m
39 tcl 13.09610m

binary:

# name size
1 assembly 247.0000000 B
2 cobol 14.5120000 kB
3 c-gcc 15.4800000 kB
4 c-clang 15.4880000 kB
5 vala 15.5280000 kB
6 cpp-clang 15.8720000 kB
7 cpp-gcc 15.9440000 kB
8 fortran 16.0880000 kB
9 swiftc 22.0000000 kB
10 nim 154.8160000 kB
11 pony 186.5120000 kB
12 prolog 228.9610000 kB
13 pascal 513.8720000 kB
14 zig 925.9200000 kB
15 go 2.3255750 MB
16 haskell 2.4991920 MB
17 rust 3.8813040 MB
18 csharp-native 64.2620110 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 876.0000000 B
3 scala 1.7150000 kB
4 csharp 3.0720000 kB
5 kotlin 5.1252460 MB
# name rss
1 assembly 16.3840000 kB
2 zig 57.3440000 kB
3 pascal 536.5760000 kB
4 c-clang 1.8145280 MB
5 c-gcc 1.8145280 MB
6 nim 2.2159360 MB
7 rust 2.2773760 MB
8 fortran 2.6869760 MB
9 lua 2.8467200 MB
10 vala 3.1662080 MB
11 forth 3.2235520 MB
12 cpp-clang 3.7969920 MB
13 cpp-gcc 3.8379520 MB
14 perl 6.7133440 MB
15 tcl 7.0164480 MB
16 go 7.6103680 MB
17 swiftc 9.9655680 MB
18 smalltalk 10.3587840 MB
19 haskell 10.3956480 MB
20 cobol 10.8953600 MB
21 python3 11.2148480 MB
22 ruby 12.8000000 MB
23 prolog 13.3447680 MB
24 ocaml 13.4635520 MB
25 csharp 18.5835520 MB
26 php 26.5297920 MB
27 csharp-native 30.0236800 MB
28 pony 36.1922560 MB
29 bun 41.6317440 MB
30 node 47.6200960 MB
31 coffeescript 50.2824960 MB
32 deno 62.0666880 MB
33 erlang 69.0831360 MB
34 java 92.8194560 MB
35 kotlin 96.5263360 MB
36 swift 126.4967680 MB
37 scala 262.0088320 MB
38 crystal 332.9556480 MB
39 julia 398.0902400 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name cycles instructions
zig 1000081507 2000002036
assembly 1000115686 2000000262
c-gcc 1000336938 2000125512
nim 1000381907 2000180554
c-clang 1000387317 2000124688
rust 1000428068 2000305214
go 1000894815 2500559881
fortran 1000909415 2000694641
vala 1000989774 2000914459
cpp-gcc 1001734059 2002550138
cpp-clang 1001753406 2002548758
swiftc 1003950221 2005282102
bun 1028969639 2034044173
java 1057005020 3062802568
csharp-native 1077431120 2116158836
pony 1082629337 2149494942
csharp 1097851882 4112951125
deno 1156207036 2674473716
kotlin 1169001706 3245556370
node 1562571950 4602919059
coffeescript 1742859986 4896510094
scala 3176874411 5510428433
pascal 3370394467 3500081174
erlang 6489723445 17970131737
crystal 9986821653 13288280397
php 13445639198 37035445748
lua 14025765065 55001538510
ocaml 14381860791 58777263624
forth 21094834187 31010416459
ruby 30363304566 87698967430
haskell 44005958150 121976533543
swift 65206804705 193991649565
cobol 67914456307 248008405636
perl 100106683020 315502107024
python3 206283140413 674051617414
smalltalk 389142131156 1082005716574
prolog 402689381403 1209441005698
julia 1995246619233 5869376792526
tcl 2791805787523 6977562869974

Note that cycles are counted with perf and are only estimates of the actual CPU cycles used, as this can vary.

name command version
assembly ./count 1000000000 NASM version 3.01 compiled on Oct 13 2025
bun bun run count.js 1000000000 1.3.3
c-clang ./count 1000000000 clang version 21.1.6
c-gcc ./count 1000000000 gcc (GCC) 15.2.1 20251112
cobol ./count 1000000000 cobc (GnuCOBOL) 3.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 21.1.6
cpp-gcc ./count 1000000000 g++ (GCC) 15.2.1 20251112
crystal crystal run ./count.cr -- 1000000000 Crystal 1.18.2 (2025-10-21) LLVM: 21.1.6 Default target: x86_64-pc-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.12.0.0
Mono JIT compiler version 6.12.0 (makepkg/0cbf0e290c3 Sat Mar 9 11:37:33 UTC 2024)
csharp-native ./out/count 1000000000 10.0.100 ...
Read more

193

23 Jan 00:38

Choose a tag to compare

193
Execution time Binary size1 Max Memory Usage
# name mean
1 assembly 309.48449ms
2 zig 309.56742ms
3 nim 310.01574ms
4 vala 310.01977ms
5 c-gcc 310.28235ms
6 c-clang 310.28466ms
7 rust 310.29649ms
8 go 310.37252ms
9 fortran 310.55752ms
10 cpp-gcc 310.77690ms
11 cpp-clang 310.93834ms
12 pascal 311.27094ms
13 pony 311.29278ms
14 swiftc 312.27540ms
15 bun 324.98332ms
16 node 336.19793ms
17 deno 338.41773ms
18 java 340.91667ms
19 kotlin 349.12427ms
20 coffeescript 378.91415ms
21 csharp-native 400.55035ms
22 csharp 481.88763ms
23 scala 692.21370ms
24 crystal 1.78670s
25 erlang 2.27263s
26 php 3.13182s
27 forth 4.30329s
28 lua 5.34823s
29 ruby 6.54836s
30 ocaml 6.95831s
31 haskell 17.89558s
32 swift 17.92999s
33 cobol 19.23099s
34 perl 29.72195s
35 julia 33.16453s
36 python3 35.10046s
37 smalltalk 1.97351m
38 prolog 2.55045m

binary:

# name size
1 assembly 247.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.0400000 kB
5 vala 16.0640000 kB
6 fortran 16.4320000 kB
7 cpp-gcc 16.5360000 kB
8 cpp-clang 16.6160000 kB
9 swiftc 22.0960000 kB
10 nim 153.4800000 kB
11 pony 172.3360000 kB
12 prolog 221.6400000 kB
13 pascal 513.8880000 kB
14 haskell 1.1786080 MB
15 go 1.8587210 MB
16 zig 1.9296480 MB
17 rust 4.4173840 MB
18 csharp-native 64.2349610 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 888.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1305400 MB
# name rss
1 assembly 12.2880000 kB
2 zig 192.5120000 kB
3 pascal 528.3840000 kB
4 c-clang 1.4868480 MB
5 nim 1.5319040 MB
6 vala 1.5523840 MB
7 c-gcc 1.6138240 MB
8 rust 2.0193280 MB
9 fortran 2.4330240 MB
10 lua 2.6705920 MB
11 pony 2.6910720 MB
12 forth 3.2604160 MB
13 cpp-gcc 3.6864000 MB
14 cpp-clang 3.7068800 MB
15 haskell 3.9649280 MB
16 perl 5.0749440 MB
17 go 7.0533120 MB
18 cobol 7.3482240 MB
19 python3 7.6840960 MB
20 smalltalk 7.9953920 MB
21 swiftc 8.8145920 MB
22 prolog 9.7157120 MB
23 ocaml 10.3587840 MB
24 php 16.5232640 MB
25 csharp 21.9832320 MB
26 csharp-native 26.9516800 MB
27 ruby 31.1336960 MB
28 node 41.0501120 MB
29 coffeescript 43.3930240 MB
30 deno 46.4445440 MB
31 erlang 52.9735680 MB
32 bun 70.5167360 MB
33 java 84.6888960 MB
34 kotlin 85.4917120 MB
35 swift 111.0917120 MB
36 crystal 270.3360000 MB
37 scala 278.6508800 MB
38 julia 302.7476480 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name command version
assembly ./count 1000000000 NASM version 2.16.01
bun bun run count.js 1000000000 1.0.25
c-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
c-gcc ./count 1000000000 gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.1.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
cpp-gcc ./count 1000000000 g++ (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.2 [fda656c71] (2024-01-18) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.8.0.105
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3 Wed Dec 14 17:29:20 UTC 2022)
csharp-native ./out/count 1000000000 8.0.101
deno deno run count.deno 1000000000 deno 1.39.4 (release, x86_64-unknown-linux-gnu) v8 12.0.267.8 typescript 5.3.3
erlang sh /usr/bin/erl -noshell -s count start 1000000000 25.2.3
forth gforth ./count.fth 1000000000 gforth 0.7.3
fortran ./count 1000000000 GNU Fortran (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
go ./count 1000000000 go version go1.20.3 linux/amd64
haskell ./count 1000000000 The Glorious Glasgow Haskell Compilation System, version 9.0.2
java java count 1000000000 javac 17.0.9
openjdk 17.0.9 2023-10-17
julia julia ./count.jl 1000000000 julia version 1.10.0
kotlin java -jar count.jar 1000000000 OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
...
Read more

191

22 Jan 05:18

Choose a tag to compare

191
Execution time Binary size1 Max Memory Usage
# name mean
1 c-gcc 308.35195ms
2 pascal 309.83203ms
3 assembly 309.87168ms
4 zig 309.89191ms
5 c-clang 310.15925ms
6 vala 310.32691ms
7 rust 310.58497ms
8 go 310.61704ms
9 cpp-gcc 310.69465ms
10 fortran 310.72683ms
11 nim 310.89064ms
12 cpp-clang 311.39917ms
13 pony 311.59090ms
14 swiftc 312.61232ms
15 bun 320.68981ms
16 deno 326.59780ms
17 node 337.05717ms
18 java 342.62309ms
19 kotlin 347.57257ms
20 coffeescript 388.68090ms
21 csharp 481.95181ms
22 scala 694.03364ms
23 crystal 1.75690s
24 erlang 2.27636s
25 php 3.10690s
26 forth 4.70816s
27 lua 5.31012s
28 ocaml 5.81283s
29 ruby 6.86432s
30 swift 17.85299s
31 haskell 18.29386s
32 cobol 19.24329s
33 perl 29.22572s
34 julia 33.15958s
35 python3 36.49637s
36 smalltalk 2.00069m
37 prolog 2.61100m

binary:

# name size
1 assembly 247.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.0400000 kB
5 vala 16.0640000 kB
6 fortran 16.4320000 kB
7 cpp-gcc 16.5360000 kB
8 cpp-clang 16.6160000 kB
9 swiftc 22.0960000 kB
10 nim 153.4800000 kB
11 pony 172.3360000 kB
12 prolog 221.6420000 kB
13 pascal 513.8880000 kB
14 haskell 1.1786080 MB
15 go 1.8587210 MB
16 zig 1.9296480 MB
17 rust 4.4173840 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 888.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1305400 MB
# name rss
1 assembly 8.1920000 kB
2 zig 192.5120000 kB
3 pascal 532.4800000 kB
4 nim 1.4868480 MB
5 c-clang 1.5441920 MB
6 vala 1.6179200 MB
7 c-gcc 1.6629760 MB
8 rust 1.9456000 MB
9 fortran 2.3715840 MB
10 lua 2.6542080 MB
11 pony 2.6746880 MB
12 forth 3.1703040 MB
13 cpp-clang 3.7027840 MB
14 cpp-gcc 3.7068800 MB
15 haskell 3.9649280 MB
16 perl 5.0257920 MB
17 go 7.0615040 MB
18 cobol 7.5120640 MB
19 python3 7.8315520 MB
20 smalltalk 8.0691200 MB
21 swiftc 8.5852160 MB
22 prolog 9.6952320 MB
23 ocaml 10.3014400 MB
24 php 16.3676160 MB
25 csharp 17.5964160 MB
26 ruby 31.2729600 MB
27 node 41.0050560 MB
28 coffeescript 43.3561600 MB
29 deno 46.5428480 MB
30 erlang 53.0186240 MB
31 bun 72.9989120 MB
32 java 82.0592640 MB
33 kotlin 86.0774400 MB
34 swift 110.6862080 MB
35 crystal 269.2874240 MB
36 scala 276.3120640 MB
37 julia 302.8418560 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name command version
assembly ./count 1000000000 NASM version 2.16.01
bun bun run count.js 1000000000 1.0.23
c-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
c-gcc ./count 1000000000 gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.1.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
cpp-gcc ./count 1000000000 g++ (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.1 [0aa30372c] (2024-01-11) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.8.0.105
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3 Wed Dec 14 17:29:20 UTC 2022)
deno deno run count.deno 1000000000 deno 1.39.4 (release, x86_64-unknown-linux-gnu) v8 12.0.267.8 typescript 5.3.3
erlang sh /usr/bin/erl -noshell -s count start 1000000000 25.2.3
forth gforth ./count.fth 1000000000 gforth 0.7.3
fortran ./count 1000000000 GNU Fortran (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
go ./count 1000000000 go version go1.20.3 linux/amd64
haskell ./count 1000000000 The Glorious Glasgow Haskell Compilation System, version 9.0.2
java java count 1000000000 javac 17.0.9
openjdk 17.0.9 2023-10-17
julia julia ./count.jl 1000000000 julia version 1.10.0
kotlin java -jar count.jar 1000000000 OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
info: kotlinc-jvm 1.3-SNAPSHOT (JRE 17.0.9+9-Ubuntu-123.04)
openjdk 17.0.9 2023-10-17
lua lua ./count.lua 1000000000 Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio ...
Read more

190

22 Jan 05:12

Choose a tag to compare

190
Execution time Binary size1 Max Memory Usage
# name mean
1 zig 309.59834ms
2 pascal 309.72349ms
3 c-clang 310.00211ms
4 c-gcc 310.06989ms
5 nim 310.15967ms
6 vala 310.44535ms
7 fortran 310.53117ms
8 rust 310.71285ms
9 go 310.78947ms
10 cpp-clang 311.08043ms
11 cpp-gcc 311.10382ms
12 pony 312.13998ms
13 swiftc 312.75754ms
14 bun 324.81163ms
15 node 338.03274ms
16 deno 339.85132ms
17 java 341.16275ms
18 kotlin 350.93517ms
19 assembly 355.70006ms
20 coffeescript 388.09647ms
21 csharp 482.20303ms
22 scala 702.22824ms
23 crystal 1.76339s
24 erlang 2.27353s
25 php 3.09031s
26 forth 4.40300s
27 lua 5.27608s
28 ocaml 6.44312s
29 ruby 7.22267s
30 haskell 18.07382s
31 swift 18.15220s
32 cobol 19.24104s
33 perl 29.07877s
34 julia 33.26138s
35 python3 34.63840s
36 smalltalk 1.96983m
37 prolog 2.55289m

binary:

# name size
1 assembly 256.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.0400000 kB
5 vala 16.0640000 kB
6 fortran 16.4320000 kB
7 cpp-gcc 16.5360000 kB
8 cpp-clang 16.6160000 kB
9 swiftc 22.0960000 kB
10 nim 153.4800000 kB
11 pony 172.3360000 kB
12 prolog 221.6450000 kB
13 pascal 513.8880000 kB
14 haskell 1.1786080 MB
15 go 1.8587210 MB
16 zig 1.9296480 MB
17 rust 4.4173840 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 888.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1305400 MB
# name rss
1 assembly 12.2880000 kB
2 zig 192.5120000 kB
3 pascal 532.4800000 kB
4 nim 1.4868480 MB
5 c-clang 1.5155200 MB
6 c-gcc 1.5933440 MB
7 vala 1.6875520 MB
8 rust 1.9865600 MB
9 fortran 2.3879680 MB
10 lua 2.6664960 MB
11 forth 3.1948800 MB
12 cpp-clang 3.7191680 MB
13 cpp-gcc 3.8625280 MB
14 haskell 3.9649280 MB
15 pony 4.6284800 MB
16 perl 5.0503680 MB
17 go 7.0696960 MB
18 cobol 7.3482240 MB
19 python3 7.7373440 MB
20 smalltalk 7.9872000 MB
21 swiftc 8.6466560 MB
22 prolog 9.7157120 MB
23 ocaml 10.3260160 MB
24 php 16.1751040 MB
25 csharp 19.7509120 MB
26 ruby 31.1992320 MB
27 node 41.0132480 MB
28 coffeescript 43.2168960 MB
29 deno 46.8008960 MB
30 erlang 53.5838720 MB
31 bun 68.5301760 MB
32 java 84.7667200 MB
33 kotlin 89.6081920 MB
34 swift 110.3216640 MB
35 crystal 270.3769600 MB
36 julia 302.5387520 MB
37 scala 370.6347520 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name command version
assembly ./count 1000000000 NASM version 2.16.01
bun bun run count.js 1000000000 1.0.23
c-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
c-gcc ./count 1000000000 gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.1.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
cpp-gcc ./count 1000000000 g++ (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.1 [0aa30372c] (2024-01-11) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.8.0.105
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3 Wed Dec 14 17:29:20 UTC 2022)
deno deno run count.deno 1000000000 deno 1.39.4 (release, x86_64-unknown-linux-gnu) v8 12.0.267.8 typescript 5.3.3
erlang sh /usr/bin/erl -noshell -s count start 1000000000 25.2.3
forth gforth ./count.fth 1000000000 gforth 0.7.3
fortran ./count 1000000000 GNU Fortran (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
go ./count 1000000000 go version go1.20.3 linux/amd64
haskell ./count 1000000000 The Glorious Glasgow Haskell Compilation System, version 9.0.2
java java count 1000000000 javac 17.0.9
openjdk 17.0.9 2023-10-17
julia julia ./count.jl 1000000000 julia version 1.10.0
kotlin java -jar count.jar 1000000000 OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
info: kotlinc-jvm 1.3-SNAPSHOT (JRE 17.0.9+9-Ubuntu-123.04)
openjdk 17.0.9 2023-10-17
lua lua ./count.lua 1000000000 Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio ...
Read more

189

19 Jan 14:27

Choose a tag to compare

189
Execution time Binary size1 Max Memory Usage
# name mean
1 zig 309.56790ms
2 assembly 309.96748ms
3 pascal 310.07942ms
4 vala 310.19440ms
5 c-gcc 310.46955ms
6 fortran 310.56011ms
7 nim 310.59806ms
8 c-clang 310.70130ms
9 go 310.76734ms
10 rust 310.85214ms
11 cpp-gcc 311.33829ms
12 cpp-clang 311.35435ms
13 pony 311.56330ms
14 swiftc 312.50292ms
15 bun 326.67567ms
16 node 337.21611ms
17 deno 341.12148ms
18 java 341.33077ms
19 kotlin 347.37505ms
20 coffeescript 386.87457ms
21 csharp 482.58097ms
22 scala 700.74721ms
23 crystal 1.77030s
24 erlang 2.27161s
25 php 3.12147s
26 forth 4.83906s
27 lua 5.33816s
28 ocaml 6.15150s
29 ruby 7.14132s
30 swift 18.24722s
31 haskell 18.48410s
32 cobol 19.50899s
33 perl 29.79779s
34 julia 33.20693s
35 python3 35.49148s
36 smalltalk 1.97004m
37 prolog 2.54129m

binary:

# name size
1 assembly 249.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.0400000 kB
5 vala 16.0640000 kB
6 fortran 16.4320000 kB
7 cpp-gcc 16.5360000 kB
8 cpp-clang 16.6160000 kB
9 swiftc 22.0960000 kB
10 nim 153.4800000 kB
11 pony 172.3360000 kB
12 prolog 221.6410000 kB
13 pascal 513.8880000 kB
14 haskell 1.1786080 MB
15 go 1.8587210 MB
16 zig 1.9296480 MB
17 rust 4.4173840 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 888.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1305400 MB
# name rss
1 assembly 12.2880000 kB
2 zig 192.5120000 kB
3 pascal 536.5760000 kB
4 c-clang 1.5360000 MB
5 nim 1.5810560 MB
6 vala 1.5933440 MB
7 c-gcc 1.6629760 MB
8 rust 2.1544960 MB
9 fortran 2.3306240 MB
10 lua 2.6542080 MB
11 pony 2.6787840 MB
12 forth 3.0842880 MB
13 cpp-clang 3.6986880 MB
14 cpp-gcc 3.7273600 MB
15 haskell 4.0837120 MB
16 perl 4.9479680 MB
17 go 7.0615040 MB
18 cobol 7.3359360 MB
19 python3 7.6595200 MB
20 smalltalk 7.9421440 MB
21 swiftc 8.7900160 MB
22 prolog 9.6460800 MB
23 ocaml 10.3137280 MB
24 php 15.8924800 MB
25 csharp 19.9229440 MB
26 ruby 31.2115200 MB
27 node 40.9927680 MB
28 coffeescript 43.1759360 MB
29 deno 47.2637440 MB
30 erlang 53.8828800 MB
31 bun 68.1082880 MB
32 java 87.3144320 MB
33 kotlin 88.2892800 MB
34 swift 110.3257600 MB
35 crystal 269.7175040 MB
36 scala 275.1324160 MB
37 julia 302.5592320 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name command version
assembly ./count 1000000000 NASM version 2.16.01
bun bun run count.js 1000000000 1.0.23
c-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
c-gcc ./count 1000000000 gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.1.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
cpp-gcc ./count 1000000000 g++ (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.1 [0aa30372c] (2024-01-11) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.8.0.105
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3 Wed Dec 14 17:29:20 UTC 2022)
deno deno run count.deno 1000000000 deno 1.39.4 (release, x86_64-unknown-linux-gnu) v8 12.0.267.8 typescript 5.3.3
erlang sh /usr/bin/erl -noshell -s count start 1000000000 25.2.3
forth gforth ./count.fth 1000000000 gforth 0.7.3
fortran ./count 1000000000 GNU Fortran (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
go ./count 1000000000 go version go1.20.3 linux/amd64
haskell ./count 1000000000 The Glorious Glasgow Haskell Compilation System, version 9.0.2
java java count 1000000000 javac 17.0.9
openjdk 17.0.9 2023-10-17
julia julia ./count.jl 1000000000 julia version 1.10.0
kotlin java -jar count.jar 1000000000 OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
info: kotlinc-jvm 1.3-SNAPSHOT (JRE 17.0.9+9-Ubuntu-123.04)
openjdk 17.0.9 2023-10-17
lua lua ./count.lua 1000000000 Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio ...
Read more

187

19 Jan 13:16

Choose a tag to compare

187
Execution time Binary size1 Max Memory Usage
# name mean
1 zig 309.69376ms
2 assembly 309.82665ms
3 nim 310.10119ms
4 c-clang 310.38616ms
5 pascal 310.39164ms
6 fortran 310.65121ms
7 c-gcc 310.65688ms
8 cpp-gcc 310.86744ms
9 cpp-clang 311.16456ms
10 go 311.32958ms
11 vala 311.42938ms
12 swiftc 312.47897ms
13 rust 313.73428ms
14 bun 324.64181ms
15 node 331.57510ms
16 deno 339.05327ms
17 java 342.84064ms
18 kotlin 348.15325ms
19 coffeescript 389.20128ms
20 csharp 482.10438ms
21 scala 694.32012ms
22 crystal 1.76314s
23 erlang 2.27793s
24 php 3.11353s
25 forth 4.86262s
26 lua 5.25471s
27 ocaml 6.58195s
28 ruby 6.80563s
29 swift 17.78816s
30 haskell 18.00914s
31 cobol 19.14783s
32 perl 30.60594s
33 julia 33.32548s
34 python3 36.69666s
35 smalltalk 1.96888m
36 prolog 2.61553m

binary:

# name size
1 assembly 249.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.0400000 kB
5 vala 16.0640000 kB
6 fortran 16.4320000 kB
7 cpp-gcc 16.5360000 kB
8 cpp-clang 16.6160000 kB
9 swiftc 22.0960000 kB
10 nim 153.4800000 kB
11 prolog 221.8180000 kB
12 pascal 513.8880000 kB
13 haskell 1.1786080 MB
14 go 1.8587210 MB
15 zig 1.9296480 MB
16 rust 4.4173840 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 888.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1305400 MB
# name rss
1 assembly 12.2880000 kB
2 zig 196.6080000 kB
3 pascal 528.3840000 kB
4 nim 1.4827520 MB
5 c-clang 1.5523840 MB
6 vala 1.6220160 MB
7 c-gcc 1.6384000 MB
8 rust 2.1094400 MB
9 fortran 2.3879680 MB
10 lua 2.6501120 MB
11 forth 3.1662080 MB
12 cpp-gcc 3.5921920 MB
13 cpp-clang 3.7478400 MB
14 haskell 4.1164800 MB
15 perl 4.8537600 MB
16 go 7.0615040 MB
17 cobol 7.2622080 MB
18 python3 7.6759040 MB
19 smalltalk 7.9380480 MB
20 swiftc 8.7941120 MB
21 prolog 9.6706560 MB
22 ocaml 10.4161280 MB
23 php 16.3962880 MB
24 csharp 17.7397760 MB
25 ruby 31.1255040 MB
26 node 41.0050560 MB
27 coffeescript 43.5159040 MB
28 deno 46.6124800 MB
29 erlang 52.7441920 MB
30 bun 76.0750080 MB
31 java 85.2787200 MB
32 kotlin 85.5941120 MB
33 swift 110.6411520 MB
34 scala 189.2392960 MB
35 crystal 269.6888320 MB
36 julia 302.7230720 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name command version
assembly ./count 1000000000 NASM version 2.16.01
bun bun run count.js 1000000000 1.0.23
c-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
c-gcc ./count 1000000000 gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.1.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 clang version 13.0.0 (https://github.com/apple/llvm-project.git 2b42c5ce063a374fb22676e27505a22fe411ea8c)
cpp-gcc ./count 1000000000 g++ (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.1 [0aa30372c] (2024-01-11) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.8.0.105
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3 Wed Dec 14 17:29:20 UTC 2022)
deno deno run count.deno 1000000000 deno 1.39.4 (release, x86_64-unknown-linux-gnu) v8 12.0.267.8 typescript 5.3.3
erlang sh /usr/bin/erl -noshell -s count start 1000000000 25.2.3
forth gforth ./count.fth 1000000000 gforth 0.7.3
fortran ./count 1000000000 GNU Fortran (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
go ./count 1000000000 go version go1.20.3 linux/amd64
haskell ./count 1000000000 The Glorious Glasgow Haskell Compilation System, version 9.0.2
java java count 1000000000 javac 17.0.9
openjdk 17.0.9 2023-10-17
julia julia ./count.jl 1000000000 julia version 1.10.0
kotlin java -jar count.jar 1000000000 OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
info: kotlinc-jvm 1.3-SNAPSHOT (JRE 17.0.9+9-Ubuntu-123.04)
openjdk 17.0.9 2023-10-17
lua lua ./count.lua 1000000000 Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio
nim ...
Read more

186

18 Jan 11:04

Choose a tag to compare

186
Execution time Binary size1 Max Memory Usage
# name mean
1 zig 309.64438ms
2 assembly 309.66467ms
3 c-clang 309.97667ms
4 nim 310.10733ms
5 rust 310.11236ms
6 c-gcc 310.11538ms
7 pascal 310.13272ms
8 vala 310.23812ms
9 go 311.15538ms
10 cpp-gcc 311.17087ms
11 cpp-clang 311.17573ms
12 fortran 313.00195ms
13 bun 325.06087ms
14 node 336.73281ms
15 deno 339.82085ms
16 java 340.47283ms
17 kotlin 349.65128ms
18 coffeescript 392.74245ms
19 csharp 481.95025ms
20 scala 691.73876ms
21 crystal 1.77671s
22 erlang 2.27169s
23 php 3.10783s
24 forth 4.46679s
25 lua 5.14212s
26 ocaml 5.97724s
27 ruby 7.15342s
28 haskell 18.06966s
29 cobol 19.40694s
30 perl 29.72147s
31 julia 33.12515s
32 python3 34.35707s
33 smalltalk 1.97147m
34 prolog 2.54389m

binary:

# name size
1 assembly 249.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 vala 16.0640000 kB
5 c-clang 16.1120000 kB
6 fortran 16.4320000 kB
7 cpp-gcc 16.5360000 kB
8 cpp-clang 16.6880000 kB
9 nim 153.4800000 kB
10 prolog 221.8160000 kB
11 pascal 513.8880000 kB
12 haskell 1.1786080 MB
13 go 1.8587210 MB
14 zig 1.9296480 MB
15 rust 4.4173840 MB

bytecode:

# name size
1 java 517.0000000 B
2 erlang 888.0000000 B
3 scala 1.5300000 kB
4 csharp 3.0720000 kB
5 kotlin 3.1305400 MB
# name rss
1 assembly 12.2880000 kB
2 zig 192.5120000 kB
3 pascal 532.4800000 kB
4 c-clang 1.5646720 MB
5 nim 1.5728640 MB
6 vala 1.5892480 MB
7 c-gcc 1.6015360 MB
8 rust 2.0725760 MB
9 fortran 2.3142400 MB
10 lua 2.6050560 MB
11 forth 3.1989760 MB
12 cpp-gcc 3.8666240 MB
13 cpp-clang 3.8748160 MB
14 haskell 3.9649280 MB
15 perl 4.8373760 MB
16 go 7.0615040 MB
17 cobol 7.3482240 MB
18 python3 7.7209600 MB
19 smalltalk 8.0691200 MB
20 prolog 9.7771520 MB
21 ocaml 10.2686720 MB
22 php 16.2529280 MB
23 csharp 19.6157440 MB
24 ruby 31.1214080 MB
25 node 41.0910720 MB
26 coffeescript 43.4995200 MB
27 deno 47.0097920 MB
28 erlang 52.7728640 MB
29 bun 76.8286720 MB
30 java 82.5671680 MB
31 kotlin 85.4466560 MB
32 scala 189.6816640 MB
33 crystal 269.7584640 MB
34 julia 302.6739200 MB
  • 1: only includes compiled files (i.e., does not include runtimes or libraries required for execution)
name command version
assembly ./count 1000000000 NASM version 2.16.01
bun bun run count.js 1000000000 1.0.23
c-clang ./count 1000000000 Ubuntu clang version 15.0.7
c-gcc ./count 1000000000 gcc (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.1.2.0
coffeescript node /usr/bin/coffee ./count.coffee 1000000000 CoffeeScript version 2.7.0
cpp-clang ./count 1000000000 Ubuntu clang version 15.0.7
cpp-gcc ./count 1000000000 g++ (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.1 [0aa30372c] (2024-01-11) LLVM: 15.0.7 Default target: x86_64-unknown-linux-gnu
csharp mono ./count.exe 1000000000 Mono C# compiler version 6.8.0.105
Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.3 Wed Dec 14 17:29:20 UTC 2022)
deno deno run count.deno 1000000000 deno 1.39.4 (release, x86_64-unknown-linux-gnu) v8 12.0.267.8 typescript 5.3.3
erlang sh /usr/bin/erl -noshell -s count start 1000000000 25.2.3
forth gforth ./count.fth 1000000000 gforth 0.7.3
fortran ./count 1000000000 GNU Fortran (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0
go ./count 1000000000 go version go1.20.3 linux/amd64
haskell ./count 1000000000 The Glorious Glasgow Haskell Compilation System, version 9.0.2
java java count 1000000000 javac 17.0.9
openjdk 17.0.9 2023-10-17
julia julia ./count.jl 1000000000 julia version 1.10.0
kotlin java -jar count.jar 1000000000 OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
info: kotlinc-jvm 1.3-SNAPSHOT (JRE 17.0.9+9-Ubuntu-123.04)
openjdk 17.0.9 2023-10-17
lua lua ./count.lua 1000000000 Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio
nim ./count 1000000000 Nim Compiler Version 2.0.2 [Linux: amd64]
node ...
Read more