Tests: run benchmarks in container via Docker

This commit is contained in:
Lovell Fuller
2022-09-01 14:58:39 +01:00
parent 0e3bd46ca3
commit 953a94885b
4 changed files with 44 additions and 22 deletions

View File

@@ -46,27 +46,10 @@ The I/O limits of the relevant (de)compression library will generally determine
## Running the benchmark test
Requires _ImageMagick_, _GraphicsMagick_ and _Mapnik_:
```sh
brew install imagemagick
brew install graphicsmagick
brew install mapnik
```
```sh
sudo apt-get install build-essential imagemagick libmagick++-dev graphicsmagick libmapnik-dev
```
```sh
sudo yum install ImageMagick-devel ImageMagick-c++-devel GraphicsMagick mapnik-devel
```
Requires Docker.
```sh
git clone https://github.com/lovell/sharp.git
cd sharp
npm install --build-from-source
cd test/bench
npm install
npm test
cd sharp/test/bench
./run-with-docker.sh
```