Polyglot Compiler Matrix Benchmark

Measured against installed native compiler checks and in compile --target native --entry answer --json for the same polyglot sample files. The native mode column distinguishes object compilation, bytecode compilation, typechecking, and syntax-only checks; ratios are only directly comparable within the same mode. Missing native compilers are skipped; native compiler failures fail the script, while in failures are reported in the row. Wall times: median over 3 timed runs; min-max across those runs shown in parentheses.

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