Tests: update benchmark deps and container (#3744)

Use Node 18.x in benchmark container
This commit is contained in:
Kleis Auke Wolthuizen
2023-07-30 12:24:27 +02:00
committed by GitHub
parent 0bc79cdb95
commit 440936a699
3 changed files with 11 additions and 6 deletions

View File

@@ -109,7 +109,7 @@ async.series({
jpegSuite.add('squoosh-lib-buffer-buffer', {
defer: true,
fn: function (deferred) {
const pool = new squoosh.ImagePool();
const pool = new squoosh.ImagePool(os.cpus().length);
const image = pool.ingestImage(inputJpgBuffer);
image.decoded
.then(function () {
@@ -707,7 +707,7 @@ async.series({
pngSuite.add('squoosh-lib-buffer-buffer', {
defer: true,
fn: function (deferred) {
const pool = new squoosh.ImagePool();
const pool = new squoosh.ImagePool(os.cpus().length);
const image = pool.ingestImage(inputPngBuffer);
image.decoded
.then(function () {