From 863251f9d281806959c9472df1761850e01a755d Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Tue, 14 Jan 2025 16:54:52 +0100 Subject: [PATCH] Update the benchmark version --- .benchrc.yaml | 1 + package.json | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.benchrc.yaml b/.benchrc.yaml index 6b020dbd..4259b6a1 100644 --- a/.benchrc.yaml +++ b/.benchrc.yaml @@ -2,5 +2,6 @@ threshold: 3 maxMs: 60_000 minRuns: 10 +triggerGC: true setupFiles: - ./setHasher.mjs diff --git a/package.json b/package.json index 518b3d35..fe3dab74 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test:unit": "lerna run test:unit", "test:browsers": "lerna run test:browsers", "test": "lerna run test", - "benchmark:files": "NODE_OPTIONS='--max_old_space_size=4096 --loader=ts-node/esm' benchmark --config .benchrc.yaml", + "benchmark:files": "NODE_OPTIONS='--max_old_space_size=4096 --expose-gc --loader=ts-node/esm' benchmark --config .benchrc.yaml", "benchmark": "yarn benchmark:files 'packages/*/test/perf/**/*.test.ts'", "benchmark:local": "yarn benchmark --local", "check-readme": "lerna run check-readme" @@ -26,7 +26,7 @@ "@babel/preset-react": "^7.14.5", "@babel/preset-typescript": "^7.14.5", "@babel/register": "^7.15.3", - "@chainsafe/benchmark": "^1.1.0-rc.4", + "@chainsafe/benchmark": "^1.1.0-rc.5", "@types/node": "^22.10.2", "@typescript-eslint/eslint-plugin": "^6", "@typescript-eslint/parser": "^6", diff --git a/yarn.lock b/yarn.lock index ef8b9966..1b9f8248 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1381,10 +1381,10 @@ core-js "2.6.10" require-resolve "0.0.2" -"@chainsafe/benchmark@^1.1.0-rc.4": - version "1.1.0-rc.4" - resolved "https://registry.yarnpkg.com/@chainsafe/benchmark/-/benchmark-1.1.0-rc.4.tgz#e791fd938044bdc81ff09643df069fdb768c6356" - integrity sha512-ekDBTaG2OjgOuvwK28NXgBA/68SvovPMMwvvqfggN27/xpBZ3PDE7Id8tg2RgskGV49qUAIOMg2FjUd5Pk43dQ== +"@chainsafe/benchmark@^1.1.0-rc.5": + version "1.1.0-rc.5" + resolved "https://registry.yarnpkg.com/@chainsafe/benchmark/-/benchmark-1.1.0-rc.5.tgz#bb9b311bcd20c875c366428f07aef7e0cc14cd5f" + integrity sha512-d09Z35Hc4SkkzJ0ugNIiLMldC7AIa6KavO5l1dZxSGb0pSm/DMNHliztmwVZfG3p+iO8/xmRjwvqNiLDsW1ETg== dependencies: "@actions/cache" "^4.0.0" "@actions/github" "^6.0.0"