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.
ELK | elkjs |
---|---|
Numbers larger than 0ms (absolute) or larger than 1.0 (relative) indicate that ELK has been faster than elkjs.
Absolute | Relative |
---|---|
Absolute | Relative |
---|---|
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
ModuleNotFoundError: No module named 'tkinter'
sudo apt-get install python3-tk