js-perf-toolkit
js-perf-toolkit copied to clipboard
A collection of performance tools which allow a js developer to reliably model and monitor a webapp
js-perf-toolkit
A collection of (Open Source) performance tools which allow a js developer to reliably model and monitor a webapp.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
-
About The Project
- Built With
-
Getting Started
- Prerequisites
- Installation
- Usage
- Roadmap
- License
- Contact
- Acknowledgements
About The Project
A collection of (Open Source) performance tools which allow a js developer to reliably model and monitor a webapp. At the moment, most of the focus is on the playwright component.
Built With
Getting Started
To get a local copy up and running follow these simple steps.
Prerequisites
This is an example of how to list things you need to use the software and how to install them.
Installation
This installation is split into two components: the playwright local installation and the full stack of performance Infrastructure.
playwright local
- Clone this repo
git clone https://github.com/unlikelyzero/js-perf-toolkit.git - Install nvm. https://github.com/nvm-sh/nvm/
- npm install the
./playwrightrepocd playwright nvm use 14 npm install - install playwright browsers
npx playwright install - run a basic test
npm run test:local:basic
Docker Infrastructure
- Clone the repo
git clone https://github.com/unlikelyzero/js-perf-toolkit.git - Start the monitoring containers (except browserless)
docker compose up -d - Verify that the following webservers are up:
localhost:9090 localhost:8086 localhost:8089 localhost:3006 - Start the browserless container
docker compose -f ./browserless.dc.yaml up -d browserless - Verify that the following webserver is up
localhost:3003
Roadmap
See the open issues for a list of proposed features (and known issues).
License
Distributed under the MIT License. See LICENSE for more information.
Contact
John Hill - [Email on https://github.com/unlikelyzero]
Project Link: https://github.com/unlikelyzero/js-perf-toolkit
Acknowledgements
Sources
- https://medium.com/swlh/beautiful-load-testing-with-k6-and-docker-compose-4454edb3a2e3
- https://susi.dev/prometheus-grafana-loki-with-docker-compose
- https://github.com/browserless/chrome/issues/52
- https://michaljanaszek.com/blog/test-website-performance-with-puppeteer/
- https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
- https://automationrhapsody.com/performance-testing-in-the-browser/
- https://github.com/llatinov/sample-performance-testing-in-browser