Skip to content

205

Choose a tag to compare

@github-actions github-actions released this 23 Dec 00:49
· 6 commits to master since this release
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 gforth ./count.fth 1000000000 gforth 0.7.3
fortran ./count 1000000000 GNU Fortran (Ubuntu 14.2.0-19ubuntu2) 14.2.0
go ./count 1000000000 go version go1.24.2 linux/amd64
haskell ./count 1000000000 The Glorious Glasgow Haskell Compilation System, version 9.6.6
java java count 1000000000 javac 21.0.9
openjdk 21.0.9 2025-10-21
julia julia ./count.jl 1000000000 julia version 1.12.3
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 21.0.9+10-Ubuntu-125.04)
openjdk 21.0.9 2025-10-21
lua lua ./count.lua 1000000000 Lua 5.4.7 Copyright (C) 1994-2024 Lua.org, PUC-Rio
nim ./count 1000000000 Nim Compiler Version 2.2.6 [Linux: amd64]
node node count.js 1000000000 v24.12.0
ocaml ocaml ./count.ml 1000000000 The OCaml toplevel, version 5.3.0
pascal ./count 1000000000 3.2.2+dfsg-46
perl perl ./count.pl 1000000000 This is perl 5, version 40, subversion 1 (v5.40.1) built for x86_64-linux-gnu-thread-multi
php php ./count.php 1000000000 PHP 8.4.5 (cli) (built: Jul 14 2025 18:20:32) (NTS)
pony ./count 1000000000 0.60.4-17b87bd [release]
Compiled with: LLVM 18.1.8 -- 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.13.3
ruby ruby count.rb 1000000000 ruby 3.3.7 (2025-01-15 revision be31f993d7) [x86_64-linux-gnu]
rust ./count 1000000000 rustc 1.92.0 (ded5c06cf 2025-12-08)
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.92-bf3fd4b5
swift swift ./count.swift 1000000000 Swift version 6.2.3 (swift-6.2.3-RELEASE)
Target: x86_64-unknown-linux-gnu
swiftc ./count 1000000000 Swift version 6.2.3 (swift-6.2.3-RELEASE)
Target: x86_64-unknown-linux-gnu
vala ./count 1000000000 Vala 0.56.18
zig ./count 1000000000 0.15.2