benchmark-language icon indicating copy to clipboard operation
benchmark-language copied to clipboard

BENCHMARK: Lua vs vs LuaJIT vs C (MSVC, GCC, LLVM) vs Java vs Perl vs Javascript vs Python vs C# (.NET CLR, Mono) vs Ruby vs R

How to run?

run-benchmark.bat

BENCHMARK (FASTEST TIME)

BENCHMARK: Lua vs vs LuaJIT vs C vs Java vs Perl vs Javascript vs Python vs C# vs Ruby vs R vs PowerShell

Result (benchmark tested on AMD FX-8300, 3.3 GHz):

Lua 5.4.2 7051.5711976423 command took 0:0:3.69 (3.69s total)

LUAC 5.4.2 7051.5711976423 command took 0:0:3.27 (3.27s total)

LuaJIT 2.1.1694442928 7051.5711976423 command took 0:0:0.81 (0.81s total)

C (MSVC 18, VS 2013) 7051.571198 command took 0:0:0.78 (0.78s total)

C (GCC 7.2.0) 7051.571198 command took 0:0:0.78 (0.78s total)

C (CLANG LLVM 6.0.0) 7051.571198 command took 0:0:0.78 (0.78s total)

C (CYGWIN GCC 10.2.0) 7051.571198 command took 0:0:0.81 (0.81s total)

C (CYGWIN CLANG 8.0.1) 7051.571198 command took 0:0:0.81 (0.81s total)

C (MINGW GCC 10.2.0) 7051.571198 command took 0:0:0.79 (0.79s total)

C (MINGW CLANG 8.0.1) 7051.571198 command took 0:0:0.78 (0.78s total)

C (Embarcadero C++ 6.60 for Win32) 7051.571198 command took 0:0:1.64 (1.64s total)

Java JRE Microsoft (build 17.0.6+10-LTS) 7051.571197642306 command took 0:0:0.90 (0.90s total)

Perl 5.32.1 7051.57119764231 command took 0:0:21.21 (21.21s total)

Javascript (Node.js 18.16.0) 7051.571197642306 command took 0:0:4.08 (4.08s total)

Javascript (MS JScript 5.812) 7051.57119764231 command took 0:0:57.95 (57.95s total)

Python 3.11.3 7051.571197642306 command took 0:0:33.87 (33.87s total)

Numba (Python 3.11.3) 7051.571197642306 command took 0:0:1.99 (1.99s total)

C# .NET Framework 4 (CSC 12) 7051.57119764231 command took 0:0:0.81 (0.81s total)

C# Mono 6.12.0 7051.57119764231 command took 0:0:1.28 (1.28s total)

C# Mono 6.12.0 (Interpreter) 7051.57119764231 command took 0:0:6.53 (6.53s total)

Ruby 3.1.2-1 7051.571197642306 command took 0:0:18.65 (18.65s total)

R 4.3.1 [1] 7051.571 command took 0:0:11.19 (11.19s total)

PowerShell 5.1.19041.2673 7051.57119764231 command took 0:0:56.65 (56.65s total)

PowerShell 7.3.4 7051.571197642306 command took 0:3:36.09 (216.09s total)

PHP 8.2.7 7051.5711976423 command took 0:0:9.17 (9.17s total)