Home

Awesome

Execution Time Comparison ELK (Java) vs elkjs

Results shown below are for the Ptolemy models in the elk-models repository.

Each algorithm was run ten times for each diagram, with the shortest execution time being recorded. An up-to-date laptop has been used, see the result files for further specs.

Absolute Execution Times

ELKelkjs
ELKelkjs

Comparison (Java 8, node.js 12.18)

Numbers larger than 0ms (absolute) or larger than 1.0 (relative) indicate that ELK has been faster than elkjs.

AbsoluteRelative
AbsoluteRelative

Comparison (Java 8, node.js 14.6)

AbsoluteRelative
AbsoluteRelative

Usage

Build:

npm install
npm run venv
npm run build

Adjust paths, versions, and packages in src/main/js/speed.js, then run

source ./.venv/bin/activate

node src/main/js/speed.js ./../elk-models/**/*.json

node src/main/js/eval.js ./results/result-202007241256.json

Trouble

ModuleNotFoundError: No module named 'tkinter'
sudo apt-get install python3-tk