Jens Fischer 95f12477e8 [tests] align JVM CLI usage with other targets 5 years ago
..
Mandelbrot.hx 2e15527b77 [cpp] Allow constructor to go into header file for inlining if it is simple enough. Inline some Mandelbrot functions 9 years ago
Readme.md cb6ef15ea8 Add performance benchmark 10 years ago
compile-cpp.hxml da2836597b Clean up CLI usage/help output, standardize flag naming (#6862) 7 years ago
compile-cppia.hxml da2836597b Clean up CLI usage/help output, standardize flag naming (#6862) 7 years ago
compile-hl.hxml c0eb1959e2 [benchs] generate hl/jit and hl/c mandelbrot 6 years ago
compile-java.hxml da2836597b Clean up CLI usage/help output, standardize flag naming (#6862) 7 years ago
compile-js.hxml da2836597b Clean up CLI usage/help output, standardize flag naming (#6862) 7 years ago
compile-jvm.hxml 95f12477e8 [tests] align JVM CLI usage with other targets 5 years ago
compile-macro.hxml da2836597b Clean up CLI usage/help output, standardize flag naming (#6862) 7 years ago
compile-neko.hxml da2836597b Clean up CLI usage/help output, standardize flag naming (#6862) 7 years ago
compile-php.hxml da2836597b Clean up CLI usage/help output, standardize flag naming (#6862) 7 years ago

Readme.md

This test has not been written for pure speed - object allocations are deliberately (over) used to measure how memory access/GC mixes with numeric processing.

Each target generates 2 outputs - one that uses classes and one that uses anonymous objects, so the speed can be compared.

Usage:

haxe compile-cpp.hxml
./bin/cpp/Mandelbrot
./bin/cpp-anon/Mandelbrot

# Note - need to time externally at the moment
haxe compile-cppia.hxml
time haxelib run hxcpp bin/Mandelbrot.cppia
time haxelib run hxcpp bin/Mandelbrot-anon.cppia

# Time externally to get sub-second accuracy
haxe compile-java.hxml
time java -jar bin/java/Mandelbrot.jar
time java -jar bin/java-anon/Mandelbrot.jar

haxe compile-js.hxml
node bin/Mandelbrot.js
node bin/Mandelbrot-anon.js

haxe compile-neko.hxml
neko bin/Mandelbrot.n
neko bin/Mandelbrot-anon.n

haxe compile-php.hxml
php bin/php/index.php
php bin/php-anon/index.php