Skip to content

Benchmarking tool to perform non-functional test of Haxe code generators

Notifications You must be signed in to change notification settings

mboussaa/haxe-testing

Repository files navigation

Tool for non-functional testing of Haxe code generators

Latest docker image: mboussaa/haxe https://hub.docker.com/r/mboussaa/haxe/

Library documentation: http://tbrosman.github.io/hxmath

What it is

A docker image for non functional testing of Haxe code generators.

Case study

Hxmath library

http://tbrosman.github.io/hxmath

A 2D/3D math library for Haxe implemented using abstracts for maximum compatibility with existing libraries (specifically OpenFL).

Target platforms

-Java

-C++

-C#

-Nodejs

-PHP

-Flash

-AS3

...

Performance properties

-Execution time

-Compilation time

-Memory usage

-CPU time

...

Performance properties

-google/cadvisor:0.19.3

-tatum/influxdb:0.8.8

-docker version 1.6

How to use

Method 1

1- install docker version 1.6

2- git clone https://github.com/mboussaa/haxe-testing.git /shared

3- cd /shared/

4- you can compile and run each benchmark program to a specific platform For example:

haxe test_cpp.hxml

This will compile to cpp target and run binaries. You can compile to other targerts using test_js or test_java etc...


Method 2

1- If you want to compile all test suites and haxe libraries to different target platforms.

For that, we have prepared a compilation script. Thus, you have to run the following command:

docker run -it --rm -w /shared/ -v /shared:/shared --name=haxe mboussaa/haxe /bin/bash -c "./compileAll.sh"

2- Time to run some test cases to specific target platform

docker run -w /shared/hxmath -it --rm -v /shared:/shared --name=haxe_run mboussaa/haxe /bin/bash -c "./run_java.sh 1"

In this example, we compile test suite number 1 with java target. Available testsuites range from 1 to 9. you can modify the target by using for example run_js.sh or run_cs.sh


Method 3 (recommended)

1 - To build automatically and run all tests use:

./build.sh

This will compile all programs and run all tests. If you use this method you don't have to execute instructions descibed above.

TODO

-Automatic test data generation

-set monitoring components for haxe

-gather non-functional properties

...

About

Benchmarking tool to perform non-functional test of Haxe code generators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published