From 3c647b1c4bbef49c0ac03ac481afc1af8e1f5656 Mon Sep 17 00:00:00 2001 From: Agost Biro <5764438+agostbiro@users.noreply.github.com> Date: Fri, 19 Apr 2024 19:09:51 +0200 Subject: [PATCH] fix: avoid transferring traces to JS (#5139) --- crates/tools/js/benchmark/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/tools/js/benchmark/index.js b/crates/tools/js/benchmark/index.js index edb8b48f8..c0f65d0d6 100644 --- a/crates/tools/js/benchmark/index.js +++ b/crates/tools/js/benchmark/index.js @@ -215,8 +215,15 @@ function numIterations(scenarioName) { // Run fast scenarios repeatedly to get more reliable results if (scenarioName.includes("safe-contracts")) { return 15; - } else if (scenarioName.includes("seaport")) { + } else if ( + scenarioName.includes("seaport") || + scenarioName.includes("openzeppelin") || + scenarioName.includes("rocketpool") || + scenarioName.includes("uniswap") + ) { return 5; + } else if (scenarioName.includes("neptune-mutual")) { + return 3; } else { return 1; }