1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 02:44:40 +00:00

test(page): main page perfomance testing

This commit is contained in:
2022-11-16 07:43:14 +07:00
parent 8b24b15df8
commit caf4adc8e7
2 changed files with 13 additions and 1 deletions

View File

@@ -26,6 +26,11 @@ tasks:
cmds:
- docker-compose -p $APP_NAME down
docker:stop:force:
docker:stop:rm:
cmds:
- docker-compose -p $APP_NAME down -v --remove-orphans
test:performance:
ignore_error: true
cmds:
- docker run --rm -i --network host grafana/k6 run --vus 1000 --duration 30s - < ./src/tests/performance/test_main_page.js

View File

@@ -0,0 +1,7 @@
import http from 'k6/http';
import {sleep} from 'k6';
export default function () {
http.get('http://localhost');
sleep(1);
}