mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
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.
This commit is contained in:
parent
a80c749096
commit
ec3852b745
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ export async function benchmarkStaticNetFiltering(options = {}) {
|
||||||
|
|
||||||
const output = [
|
const output = [
|
||||||
'Benchmarked static network filtering engine:',
|
'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`,
|
`\tAverage: ${(dur / matchCount).toFixed(3)} ms per request`,
|
||||||
`\tNot blocked: ${matchCount - blockCount - allowCount}`,
|
`\tNot blocked: ${matchCount - blockCount - allowCount}`,
|
||||||
`\tBlocked: ${blockCount}`,
|
`\tBlocked: ${blockCount}`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue