Skip to content

154

Choose a tag to compare

@github-actions github-actions released this 11 Jan 05:02
· 60 commits to master since this release
Execution time Binary size Max Memory Usage*
position name mean
1 zig 309.63853ms
2 assembly 309.86013ms
3 nim 310.04315ms
4 c-gcc 310.08205ms
5 pascal 310.10381ms
6 rust 310.38808ms
7 c-clang 310.41358ms
8 fortran 310.78377ms
9 cpp-clang 311.41803ms
10 cpp-gcc 311.51418ms
11 go 324.76864ms
12 bun 324.82977ms
13 node 338.15790ms
14 deno 339.71181ms
15 java 352.87501ms
16 kotlin 360.94844ms
17 coffeescript 367.68516ms
18 csharp 482.26792ms
19 scala 741.64029ms
20 crystal 1.73869s
21 erlang 2.41615s
22 php 3.18788s
23 forth 4.45225s
24 lua 4.59334s
25 ruby 8.70901s
26 haskell 16.31933s
27 cobol 19.40795s
28 perl 30.31694s
29 julia 33.35947s
30 python3 39.30014s
31 smalltalk 2.01200m
32 prolog 2.57604m
position name size
1 assembly 253.0000000 B
2 cobol 14.7360000 kB
3 c-gcc 16.0080000 kB
4 c-clang 16.0880000 kB
5 fortran 16.4320000 kB
6 cpp-gcc 16.5360000 kB
7 cpp-clang 16.6640000 kB
8 nim 149.3840000 kB
9 prolog 214.4260000 kB
10 pascal 513.8880000 kB
11 haskell 1.1097200 MB
12 go 1.7697210 MB
13 zig 1.9296480 MB
14 rust 4.4173840 MB
15 bun -
16 coffeescript -
17 crystal -
18 csharp -
19 deno -
20 erlang -
21 forth -
22 java -
23 julia -
24 kotlin -
25 lua -
26 node -
27 perl -
28 php -
29 python3 -
30 ruby -
31 scala -
32 smalltalk -
# name max_rss
1 assembly 262.1440000 kB
2 zig 262.1440000 kB
3 pascal 393.2160000 kB
4 c-clang 1.4417920 MB
5 c-gcc 1.4417920 MB
6 nim 1.4417920 MB
7 rust 1.8350080 MB
8 fortran 2.6214400 MB
9 lua 2.6214400 MB
10 forth 3.1457280 MB
11 go 3.2890880 MB
12 cpp-clang 3.6700160 MB
13 cpp-gcc 3.6700160 MB
14 haskell 3.8010880 MB
15 perl 4.7185920 MB
16 cobol 6.4225280 MB
17 smalltalk 7.8643200 MB
18 python3 8.2575360 MB
19 prolog 10.4857600 MB
20 php 19.3044480 MB
21 csharp 22.7491840 MB
22 ruby 30.0154880 MB
23 java 40.5872640 MB
24 kotlin 44.0401920 MB
25 node 46.6944000 MB
26 erlang 49.9752960 MB
27 coffeescript 52.6336000 MB
28 deno 55.0502400 MB
29 bun 66.3429120 MB
30 scala 88.1131520 MB
31 crystal 258.6460160 MB
32 julia 294.8587520 MB

*: Getting the max_rss isn't 100% reliable for very small binary sizes
this appears to be a limitation of the linux kernel.

name command version
assembly ./count 1000000000 NASM version 2.15.05
bun bun run count.js 1000000000 1.0.22
c-clang ./count 1000000000 Ubuntu clang version 14.0.0-1ubuntu1.1
c-gcc ./count 1000000000 gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
cobol ./count 1000000000 cobc (GnuCOBOL) 3.1.2.0
coffeescript coffee ./count.coffee 1000000000 CoffeeScript version 1.12.8
cpp-clang ./count 1000000000 Ubuntu clang version 14.0.0-1ubuntu1.1
cpp-gcc ./count 1000000000 g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
crystal crystal run ./count.cr -- 1000000000 Crystal 1.11.0 [95d04fab4] (2024-01-08) 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.2 Wed Jun 30 05:34:49 UTC 2021)
deno deno run count.deno 1000000000 deno 1.39.2 (release, x86_64-unknown-linux-gnu) v8 12.0.267.8 typescript 5.3.3
erlang erl -noshell -s count start 1000000000 24.2.1
forth gforth ./count.fth 1000000000 gforth 0.7.3
fortran ./count 1000000000 GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
go ./count 1000000000 go version go1.18.1 linux/amd64
haskell ./count 1000000000 The Glorious Glasgow Haskell Compilation System, version 8.8.4
java java count 1000000000 javac 11.0.21
openjdk 11.0.21 2023-10-17
julia julia ./count.jl 1000000000 julia version 1.10.0
kotlin java -jar count.jar 1000000000 info: kotlinc-jvm 1.3-SNAPSHOT (JRE 11.0.21+9-post-Ubuntu-0ubuntu122.04)
openjdk 11.0.21 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.10.0
pascal ./count 1000000000 3.2.2+dfsg-9ubuntu1
perl perl ./count.pl 1000000000 This is perl 5, version 34, subversion 0 (v5.34.0) built for x86_64-linux-gnu-thread-multi
php php ./count.php 1000000000 PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
prolog ./count 1000000000 SWI-Prolog version 8.4.2 for x86_64-linux
python3 python3 count.py 1000000000 Python 3.10.12
ruby ruby count.rb 1000000000 ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]
rust ./count 1000000000 rustc 1.75.0 (82e1608df 2023-12-21)
scala scala count 1000000000 Scala compiler version 2.11.12 -- Copyright 2002-2017, LAMP/EPFL
Scala code runner version 2.11.12 -- Copyright 2002-2017, LAMP/EPFL
smalltalk gst -f count.st 1000000000 GNU Smalltalk version 3.2.5
zig ./count 1000000000 0.11.0