Polyglot Compiler Matrix Benchmark

Side-by-side native toolchain vs in compile --target native on the same polyglot sample files.

How to read the comparison

ColumnMeaning
Native medianWall time for the installed compiler check (clang, rustc, go, …)
in medianWall time for in compile --target native --entry answer on that sample
in/nativeRatio < 1 → inauguration faster for that row; > 1 → native faster
Native modeobject / bytecode / typecheck / syntax — compare only within the same mode

Wall times: median over 3 timed runs (min–max in parentheses). Missing native compilers are skipped; native failures fail the script; in failures stay in the table with status.

Benchmark Environment

Results

LanguageNative compilerNative modeNative median (min-max ms)in median (min-max ms)in/nativeStatusReason
Cclangobject68.66 (61.93-73.29)15.91 (15.82-15.94)0.232ok
C++clang++object62.49 (58.77-64.44)15.90 (14.58-15.91)0.254ok
Rustrustcobject56.04 (54.34-59.05)15.76 (14.88-16.36)0.281ok
Gogoobject24.25 (23.64-28.75)13.84 (13.83-13.91)0.571ok
Swiftswiftcobject149.88 (146.75-153.73)14.78 (13.52-14.82)0.099ok
Vvsyntax25.29 (24.43-25.67)13.50 (12.52-13.73)0.534ok
JavaScriptnodesyntax35.41 (33.39-36.68)12.92 (12.41-13.74)0.365ok
TypeScriptbuntypecheck1118.70 (1049.15-1224.45)13.41 (12.68-14.57)0.012ok
Pythonpython3bytecode36.94 (34.93-38.12)12.75 (12.58-13.11)0.345ok
Rubyrubysyntax43.10 (43.08-54.99)12.66 (12.25-13.09)0.294ok
Zigzigsyntax59.38 (58.09-60.08)12.49 (12.47-14.46)0.210ok
PHPphpsyntax62.34 (60.09-67.66)13.90 (13.12-16.18)0.223ok
Javajavacbytecode189.66 (181.57-193.15)12.29 (12.21-13.33)0.065ok
Nimnimtypecheck131.96 (123.77-140.85)13.55 (12.36-16.62)0.103ok
Dldc2object42.56 (41.66-44.01)13.45 (12.47-13.69)0.316ok