Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 23 Jan 00:38
· 1 commit to master since this release
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.
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
ocaml ocaml ./count.ml 1000000000 The OCaml toplevel, version 4.13.1
pascal ./count 1000000000 3.2.2+dfsg-18ubuntu1
perl perl ./count.pl 1000000000 This is perl 5, version 36, subversion 0 (v5.36.0) built for x86_64-linux-gnu-thread-multi
php php ./count.php 1000000000 PHP 8.1.12-1ubuntu4.3 (cli) (built: Aug 17 2023 17:37:48) (NTS)
pony ./count 1000000000 0.58.0-a161b7c [release]
Compiled with: LLVM 15.0.7 -- Clang-14.0.0-x86_64
Defaults: pic=true
prolog sh ./count 1000000000 SWI-Prolog version 9.0.4 for x86_64-linux
python3 python3 count.py 1000000000 Python 3.11.4
ruby ruby count.rb 1000000000 ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
rust ./count 1000000000 rustc 1.75.0 (82e1608df 2023-12-21)
scala bash /usr/bin/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
swift swift ./count.swift 1000000000 Swift version 5.9.2 (swift-5.9.2-RELEASE)
Target: x86_64-unknown-linux-gnu
swiftc ./count 1000000000 Swift version 5.9.2 (swift-5.9.2-RELEASE)
Target: x86_64-unknown-linux-gnu
vala ./count 1000000000 Vala 0.56.7
zig ./count 1000000000 0.11.0