diff --git a/tasks/bench.ts b/tasks/bench.ts index 8c743d172..8393e8500 100644 --- a/tasks/bench.ts +++ b/tasks/bench.ts @@ -56,7 +56,7 @@ await main(function* (args) { for (let scenario of filter(scenarios, { include, exclude })) { tasks.push( yield* spawn(() => - runBenchmark(scenario, { ...options, type: "benchmark" }), + runBenchmark(scenario, { ...options, type: "benchmark" }) ), ); } diff --git a/tasks/bench/scenarios/effect.recursion.ts b/tasks/bench/scenarios/effect.recursion.ts index 4b38a6f8c..0acff9ee2 100644 --- a/tasks/bench/scenarios/effect.recursion.ts +++ b/tasks/bench/scenarios/effect.recursion.ts @@ -2,8 +2,9 @@ import { Effect } from "npm:effect"; import { call } from "../../../mod.ts"; import { scenario } from "./scenario.ts"; -await scenario("effect.recursion", (depth) => - call(() => Effect.runPromise(recurse(depth))) +await scenario( + "effect.recursion", + (depth) => call(() => Effect.runPromise(recurse(depth))), ); function recurse(depth: number): Effect.Effect { diff --git a/tasks/bench/scenarios/scenario.ts b/tasks/bench/scenarios/scenario.ts index 7e7cad349..68f0ae686 100644 --- a/tasks/bench/scenarios/scenario.ts +++ b/tasks/bench/scenarios/scenario.ts @@ -80,8 +80,9 @@ export function scenario( let startupTime = entryTimes.reduce((sum, time) => sum + time, 0); - let avgStartupTime = - entryTimes.length > 0 ? startupTime / entryTimes.length : 0; + let avgStartupTime = entryTimes.length > 0 + ? startupTime / entryTimes.length + : 0; let result = Ok({ avgTime, avgStartupTime, reps: options.repeat }); @@ -89,7 +90,7 @@ export function scenario( yield* each.next(); } - }), + }) ); } catch (error) { send({ type: "done", name, result: Err(error as Error) });