Skip to content

Releases: acheronfail/count

193

23 Jan 00:38
Compare
Choose a tag to compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

185

18 Jan 07:55
Compare
Choose a tag to compare
185
Execution time Binary size1 Max Memory Usage
# name mean
1 fortran 299.34660ms
2 zig 309.60549ms
3 c-clang 309.73924ms
4 assembly 309.86055ms
5 pascal 309.92889ms
6 c-gcc 310.23530ms
7 nim 310.31245ms
8 rust 310.33013ms
9 go 310.66452ms
10 cpp-clang 310.94189ms
11 cpp-gcc 311.80828ms
12 bun 324.86149ms
13 node 338.78468ms
14 deno 339.24391ms
15 java 340.38582ms
16 kotlin 348.11289ms
17 coffeescript 392.08494ms
18 csharp 480.27780ms
19 scala 699.95420ms
20 crystal 1.77331s
21 erlang 2.26850s
22 php 3.11264s
23 forth 4.76335s
24 lua 5.23200s
25 ocaml 5.80637s
26 ruby 6.42753s
27 haskell 17.88823s
28 cobol 19.76716s
29 perl 30.15765s
30 julia 33.18840s
31 python3 34.37435s
32 smalltalk 1.99775m
33 prolog 2.61375m

binary:

# name size
1 assembly 249.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.1120000 kB
5 fortran 16.4320000 kB
6 cpp-gcc 16.5360000 kB
7 cpp-clang 16.6880000 kB
8 nim 153.4800000 kB
9 prolog 221.8190000 kB
10 pascal 513.8880000 kB
11 haskell 1.1786080 MB
12 go 1.8587210 MB
13 zig 1.9296480 MB
14 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 nim 1.5237120 MB
5 c-clang 1.5769600 MB
6 c-gcc 1.5892480 MB
7 rust 2.0439040 MB
8 fortran 2.2568960 MB
9 lua 2.6009600 MB
10 forth 3.1416320 MB
11 cpp-clang 3.7396480 MB
12 cpp-gcc 3.8625280 MB
13 haskell 3.9690240 MB
14 perl 4.9971200 MB
15 go 7.0696960 MB
16 cobol 7.5202560 MB
17 python3 7.6800000 MB
18 smalltalk 8.0691200 MB
19 prolog 9.6665600 MB
20 ocaml 10.3055360 MB
21 php 15.8392320 MB
22 csharp 19.7713920 MB
23 ruby 31.2442880 MB
24 node 41.0419200 MB
25 coffeescript 43.4216960 MB
26 deno 46.6042880 MB
27 erlang 53.6903680 MB
28 bun 66.8835840 MB
29 java 82.3500800 MB
30 kotlin 85.6145920 MB
31 crystal 270.3728640 MB
32 scala 280.7234560 MB
33 julia 302.1864960 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 node count.js 1000000000 v20.11.0 ...
Read more

184

18 Jan 03:35
Compare
Choose a tag to compare
184
Execution time Binary size1 Max Memory Usage
# name mean
1 zig 309.54399ms
2 pascal 309.79513ms
3 nim 309.97349ms
4 c-gcc 310.05233ms
5 rust 310.18737ms
6 c-clang 310.27619ms
7 assembly 310.37718ms
8 cpp-clang 310.56154ms
9 fortran 310.68560ms
10 go 310.81357ms
11 cpp-gcc 311.18499ms
12 bun 324.67179ms
13 node 337.02911ms
14 deno 339.24732ms
15 java 341.40391ms
16 kotlin 346.49362ms
17 coffeescript 389.02453ms
18 csharp 483.23740ms
19 scala 684.52700ms
20 crystal 1.77353s
21 erlang 2.26623s
22 php 3.12428s
23 forth 4.02877s
24 lua 5.22714s
25 ruby 6.33933s
26 haskell 17.46054s
27 cobol 19.36784s
28 perl 29.78081s
29 julia 33.35809s
30 python3 37.71161s
31 smalltalk 1.98258m
32 prolog 2.57920m

binary:

# name size
1 assembly 249.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.1120000 kB
5 fortran 16.4320000 kB
6 cpp-gcc 16.5360000 kB
7 cpp-clang 16.6880000 kB
8 nim 153.4800000 kB
9 prolog 221.8200000 kB
10 pascal 513.8880000 kB
11 haskell 1.1786080 MB
12 go 1.8587210 MB
13 zig 1.9296480 MB
14 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 16.3840000 kB
2 zig 192.5120000 kB
3 pascal 532.4800000 kB
4 c-clang 1.5196160 MB
5 nim 1.5482880 MB
6 c-gcc 1.6097280 MB
7 rust 2.0725760 MB
8 fortran 2.5190400 MB
9 lua 2.6542080 MB
10 forth 3.1948800 MB
11 cpp-clang 3.6372480 MB
12 cpp-gcc 3.7109760 MB
13 haskell 4.0509440 MB
14 perl 4.9520640 MB
15 go 7.0615040 MB
16 cobol 7.2704000 MB
17 python3 7.7537280 MB
18 smalltalk 7.9831040 MB
19 prolog 9.6215040 MB
20 php 16.2447360 MB
21 csharp 17.6005120 MB
22 ruby 31.1132160 MB
23 node 41.0869760 MB
24 coffeescript 43.5077120 MB
25 deno 46.5182720 MB
26 erlang 53.1374080 MB
27 bun 68.8005120 MB
28 java 82.2845440 MB
29 kotlin 86.3272960 MB
30 crystal 270.2950400 MB
31 scala 281.1781120 MB
32 julia 302.6984960 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.22
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 node count.js 1000000000 v20.11.0 ...
Read more

183

18 Jan 00:11
Compare
Choose a tag to compare
183
Execution time Binary size1 Max Memory Usage
# name mean
1 zig 309.78929ms
2 pascal 309.91508ms
3 assembly 309.95401ms
4 c-clang 310.10206ms
5 c-gcc 310.15850ms
6 rust 310.29317ms
7 fortran 310.38679ms
8 go 310.47479ms
9 cpp-clang 311.10776ms
10 nim 311.25246ms
11 cpp-gcc 311.69537ms
12 bun 325.41692ms
13 node 337.49134ms
14 deno 338.68386ms
15 java 340.72105ms
16 kotlin 349.06687ms
17 coffeescript 387.86497ms
18 csharp 482.30304ms
19 scala 683.58594ms
20 crystal 1.72675s
21 erlang 2.27575s
22 php 3.10235s
23 forth 4.91849s
24 lua 5.27904s
25 ruby 6.49698s
26 haskell 18.29330s
27 cobol 19.29423s
28 perl 29.61801s
29 julia 33.32063s
30 python3 35.67993s
31 smalltalk 1.93483m
32 prolog 2.53874m

binary:

# name size
1 assembly 249.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.1120000 kB
5 fortran 16.4320000 kB
6 cpp-gcc 16.5360000 kB
7 cpp-clang 16.6880000 kB
8 nim 153.4800000 kB
9 prolog 221.8180000 kB
10 pascal 513.8880000 kB
11 haskell 1.1786080 MB
12 go 1.8587210 MB
13 zig 1.9296480 MB
14 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.4868480 MB
5 nim 1.4950400 MB
6 c-gcc 1.5523840 MB
7 rust 2.0398080 MB
8 fortran 2.3183360 MB
9 lua 2.6705920 MB
10 forth 3.0965760 MB
11 cpp-gcc 3.6823040 MB
12 cpp-clang 3.8420480 MB
13 haskell 3.9895040 MB
14 perl 4.9315840 MB
15 go 7.0615040 MB
16 cobol 7.3482240 MB
17 python3 7.7946880 MB
18 smalltalk 7.9872000 MB
19 prolog 9.7607680 MB
20 php 16.5150720 MB
21 csharp 19.8860800 MB
22 ruby 31.0845440 MB
23 node 41.0009600 MB
24 coffeescript 43.4503680 MB
25 deno 46.4158720 MB
26 erlang 52.2690560 MB
27 bun 76.1978880 MB
28 java 82.5262080 MB
29 kotlin 85.2828160 MB
30 crystal 270.1475840 MB
31 julia 302.9565440 MB
32 scala 371.9413760 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.22
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 node count.js 1000000000 v20.11.0 ...
Read more

182

17 Jan 23:51
Compare
Choose a tag to compare
182
Execution time Binary size1 Max Memory Usage
# name mean
1 zig 310.03316ms
2 nim 310.07484ms
3 c-clang 310.21602ms
4 rust 310.33178ms
5 c-gcc 310.51161ms
6 pascal 310.61975ms
7 go 310.65916ms
8 assembly 310.79792ms
9 fortran 310.88646ms
10 cpp-clang 310.96960ms
11 cpp-gcc 311.10857ms
12 bun 324.96309ms
13 node 336.95856ms
14 deno 338.57219ms
15 java 340.96433ms
16 kotlin 347.47595ms
17 coffeescript 386.59202ms
18 csharp 481.41225ms
19 scala 708.04918ms
20 crystal 1.82321s
21 erlang 2.27342s
22 php 3.10286s
23 forth 4.40875s
24 lua 5.27048s
25 ruby 7.40487s
26 haskell 18.02407s
27 cobol 19.24524s
28 perl 29.91085s
29 julia 33.51987s
30 python3 36.56275s
31 smalltalk 1.97784m
32 prolog 2.60730m

binary:

# name size
1 assembly 249.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.1120000 kB
5 fortran 16.4320000 kB
6 cpp-gcc 16.5360000 kB
7 cpp-clang 16.6880000 kB
8 nim 153.4800000 kB
9 prolog 221.8150000 kB
10 pascal 513.8880000 kB
11 haskell 1.1786080 MB
12 go 1.8587210 MB
13 zig 1.9296480 MB
14 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 16.3840000 kB
2 zig 196.6080000 kB
3 pascal 532.4800000 kB
4 nim 1.4213120 MB
5 c-clang 1.5196160 MB
6 c-gcc 1.6056320 MB
7 rust 1.9005440 MB
8 fortran 2.2568960 MB
9 lua 2.6460160 MB
10 forth 3.1539200 MB
11 cpp-clang 3.6372480 MB
12 cpp-gcc 3.6864000 MB
13 haskell 4.1779200 MB
14 perl 5.1077120 MB
15 go 7.0615040 MB
16 cobol 7.3605120 MB
17 python3 7.7168640 MB
18 smalltalk 8.0527360 MB
19 prolog 9.6665600 MB
20 php 16.2365440 MB
21 csharp 17.7602560 MB
22 ruby 31.3098240 MB
23 node 41.1197440 MB
24 coffeescript 43.3766400 MB
25 deno 46.9975040 MB
26 erlang 54.0549120 MB
27 bun 68.5670400 MB
28 java 83.0955520 MB
29 kotlin 86.3150080 MB
30 crystal 270.6964480 MB
31 scala 284.9832960 MB
32 julia 302.7189760 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.22
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 node count.js 1000000000 v20.11.0 ...
Read more