Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.35 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.35 KB

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