Skip to content

Execution time comparison between ELK (Java) and elkjs

Notifications You must be signed in to change notification settings

kieler/elk-speed

Repository files navigation

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

ELK elkjs
ELK elkjs

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.

Absolute Relative
Absolute Relative

Comparison (Java 8, node.js 14.6)

Absolute Relative
Absolute Relative

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

About

Execution time comparison between ELK (Java) and elkjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published