From ec3852b74598fe9679dc6ea2d366ac355019237b Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 7 Oct 2024 15:06:12 -0400 Subject: [PATCH] Re-word: it's timing per request, not per call to SNFE.match() A single request can require multiple calls to the static network filtering engine (SNFE). The reported timing is the result of going through *all* the required calls to SNFE. In effect, a single call to SNFE.match() is a fraction of the reported timing. --- src/js/benchmarks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/benchmarks.js b/src/js/benchmarks.js index 83cd97c95..c41024698 100644 --- a/src/js/benchmarks.js +++ b/src/js/benchmarks.js @@ -217,7 +217,7 @@ export async function benchmarkStaticNetFiltering(options = {}) { const output = [ 'Benchmarked static network filtering engine:', - `\tEvaluated ${matchCount} match calls in ${dur.toFixed(0)} ms`, + `\tEvaluated ${matchCount} requests in ${dur.toFixed(0)} ms`, `\tAverage: ${(dur / matchCount).toFixed(3)} ms per request`, `\tNot blocked: ${matchCount - blockCount - allowCount}`, `\tBlocked: ${blockCount}`,