https://github.com/just-js/benchmarks
benchmarks comparing different javascript runtimes
https://github.com/just-js/benchmarks
Last synced: 6 months ago
JSON representation
benchmarks comparing different javascript runtimes
- Host: GitHub
- URL: https://github.com/just-js/benchmarks
- Owner: just-js
- Created: 2022-08-02T01:01:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-12T10:29:56.000Z (almost 3 years ago)
- Last Synced: 2023-03-09T08:41:25.463Z (about 2 years ago)
- Language: JavaScript
- Size: 1.41 MB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Javscript Benchmarks
A set of benchmarks for various common scenarios in JS development.
## Run in Gitpod
[](https://gitpod.io/#https://github.com/just-js/benchmarks)
## Run locally with Docker
- Build the benchmark docker image
```
docker build -t benchmark .
```- Build the docker image for the SQLite benchmark
```
cd 02-sqlite
docker build -t benchmark-02-sqlite .
```- Run the SQLite benchmark shell
```
docker run -it --rm --privileged -v $(pwd)/out:/bench/out benchmark-02-sqlite
```- Run the benchmark inside the docker shell
```
just run.js 10 10000000
```
you should see results in `02-sqlite/out/results.json` when benchmark is complete.- View the Results
run a local web server from 02-sqlite/out to view the report.html file. e.g.
```
cd 02-sqlite/out
python3 -m http.server 8080
xdg-open http://127.0.0.1:8080/results.html
```## Results
latest results can be viewed [here](https://just-js.github.io/benchmarks/)
- SQLite Benchmark [Results](https://just-js.github.io/benchmarks/02-sqlite.html)