Skip to content
Snippets Groups Projects
Commit 4b858a49 authored by Moritz Langenstein's avatar Moritz Langenstein
Browse files

(ml5717) GC, heap usage, gnuplot output and vertical slice of refactoring benchmarks

parent 0c723dbb
No related branches found
No related tags found
1 merge request!67Benchmark testing
Pipeline #108190 failed
...@@ -11,22 +11,26 @@ src/signalbuddy ...@@ -11,22 +11,26 @@ src/signalbuddy
src/yjs src/yjs
src/tiny-worker src/tiny-worker
# Temporary test dump files # Temporary benchmark dump files
dot-seq-add.json .dot-seq-add.json
dot-seq-erase.json .dot-seq-erase.json
dot-seq-sync.json .dot-seq-sync.json
dot-par-add.json .dot-par-add.json
dot-par-erase.json .dot-par-erase.json
dot-par-sync.json .dot-par-sync.json
path-seq-add.json .path-seq-add.json
path-seq-erase.json .path-seq-erase.json
path-seq-sync.json .path-seq-sync.json
path-par-add.json .path-par-add.json
path-par-erase.json .path-par-erase.json
path-par-sync.json .path-par-sync.json
# Benchmark output files
plots/*.tsv
plots/*.pdf
### macOS ### ### macOS ###
# General # General
......
...@@ -111,4 +111,9 @@ benchmark: ...@@ -111,4 +111,9 @@ benchmark:
dependencies: dependencies:
- npm_install - npm_install
script: script:
- apt install gnuplot
- npm run test-benchmark - npm run test-benchmark
- npm run plot
artifacts:
paths:
- plots/
This diff is collapsed.
This diff is collapsed.
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"test": "jest --testPathIgnorePatterns .*.data.js .*benchmark.test.js src/liowebrtc src/rtcpeerconnection src/signalbuddy src/yjs src/tiny-worker", "test": "jest --testPathIgnorePatterns .*.data.js .*benchmark.test.js src/liowebrtc src/rtcpeerconnection src/signalbuddy src/yjs src/tiny-worker",
"test-changed": "jest --only-changed --testPathIgnorePatterns __tests__/*.data.js src/liowebrtc src/rtcpeerconnection src/signalbuddy src/yjs src/tiny-worker", "test-changed": "jest --only-changed --testPathIgnorePatterns __tests__/*.data.js src/liowebrtc src/rtcpeerconnection src/signalbuddy src/yjs src/tiny-worker",
"test-coverage": "jest --coverage --testPathIgnorePatterns __tests__/*.data.js src/liowebrtc src/rtcpeerconnection src/signalbuddy src/yjs src/tiny-worker", "test-coverage": "jest --coverage --testPathIgnorePatterns __tests__/*.data.js src/liowebrtc src/rtcpeerconnection src/signalbuddy src/yjs src/tiny-worker",
"test-benchmark": "jest --testPathPattern .*benchmark.test.js --testPathIgnorePatterns .*.data.js src/liowebrtc src/rtcpeerconnection src/signalbuddy src/yjs src/tiny-worker", "test-benchmark": "jest --testPathPattern .*benchmark.test.js --testPathIgnorePatterns .*.data.js src/liowebrtc src/rtcpeerconnection src/signalbuddy src/yjs src/tiny-worker --runInBand",
"test-e2e:peer1": "testcafe chrome:headless __e2e_tests__/peer1.e2e.js", "test-e2e:peer1": "testcafe chrome:headless __e2e_tests__/peer1.e2e.js",
"test-e2e:peer2": "testcafe chrome:headless __e2e_tests__/peer2.e2e.js", "test-e2e:peer2": "testcafe chrome:headless __e2e_tests__/peer2.e2e.js",
"test-e2e": "run-p test-e2e:*", "test-e2e": "run-p test-e2e:*",
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
"format": "prettier --ignore-path .gitignore --check --write '**/*.{html,js,json,md}'", "format": "prettier --ignore-path .gitignore --check --write '**/*.{html,js,json,md}'",
"format-check": "prettier --ignore-path .gitignore --check '**/*.{html,js,json,md}'", "format-check": "prettier --ignore-path .gitignore --check '**/*.{html,js,json,md}'",
"lint": "eslint --ignore-path .gitignore '**/*.js'", "lint": "eslint --ignore-path .gitignore '**/*.js'",
"validate": "npm ls" "validate": "npm ls",
"plot": "find plot-scripts/ -maxdepth 1 -type f -name '*.p' -exec gnuplot {} \\;"
}, },
"dependencies": { "dependencies": {
"@ungap/event-target": "^0.1.0", "@ungap/event-target": "^0.1.0",
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
"eslint": "^6.5.1", "eslint": "^6.5.1",
"eslint-config-prettier": "^6.5.0", "eslint-config-prettier": "^6.5.0",
"eslint-plugin-testcafe": "^0.2.1", "eslint-plugin-testcafe": "^0.2.1",
"expose-gc": "^1.0.0",
"jest": "^24.9.0", "jest": "^24.9.0",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"prettier": "^1.18.2", "prettier": "^1.18.2",
......
set xlabel "Iterations"
set ylabel "Time [ms]"
set title "addPath() performance scalability"
set key inside bottom right
set terminal dumb size 120, 30
set autoscale
plot "plots/dot-seq-benchmark.tsv" using 1:($2/(1e6*$1)) with lines title "dot [sequential]"
set terminal pdf
set output "plots/dot-seq-benchmark.pdf"
plot "plots/dot-seq-benchmark.tsv" using 1:($2/(1e6*$1)) with lines title "dot [sequential]"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment