Home

Awesome

HaxeBench

Haxe, Dart, Typescript, and Webassembly, javascript output performances comparison.

An updated comparison from https://web.archive.org/web/20171104160438/http://www.infognition.com/blog/2014/comparing_flash_haxe_dart_asmjs_and_cpp.html

setup

npm install
npm run build

run

To run the benchmark open one of this urls in your browser :

results

On Chrome 70 and Firefox 63, i5-5300U CPU @ 2.30GHz, 200 passes

langcompilation timechrome run timefirefox run timesizeminified size
Haxe0.22s6.76s8.15s27KB*13KB
TypeScript2.79s7.86s8.46s12KB7KB
Dart5.38s9.137s8.8s98KB89KB
Wasm8.74s6.8s5.93s82KB**69KB

result

On Chrome 66 and Firefox 59, i5-5300U CPU @ 2.30GHz, 200 passes

langcompilation timechrome run timefirefox run timesizeminified size
Haxe0.281s7.97s7.18s27KB*13KB
TypeScript1.97s8.94s8.15s12KB7KB
Dart5.56s11.418s9.241s344KB136KB
Dart24.06s11.411s9.206s264KB106KB
Wasm8.74s7.176s5.93s82KB**69KB

*includes typed arrays polyfills for old browsers.

** wasm 23KB + javascript 59KB

result