mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 17:17:57 +01:00
re-benchmarked using same settings as Chromium
This commit is contained in:
parent
817c497a6b
commit
caa1256e70
1 changed files with 2 additions and 2 deletions
|
@ -358,8 +358,8 @@ var messager = vAPI.messaging.channel('contentscript-end.js');
|
||||||
// - document.querySelector() = 44.79 ms
|
// - document.querySelector() = 44.79 ms
|
||||||
// - document.body.matches() = 6.06 ms
|
// - document.body.matches() = 6.06 ms
|
||||||
// Firefox 36:
|
// Firefox 36:
|
||||||
// - document.querySelector() = 14.23 ms
|
// - document.querySelector() = 27.10 ms
|
||||||
// - document.body.matches() = 2.97 ms
|
// - document.body.matches() = 3.50 ms
|
||||||
//
|
//
|
||||||
// However, Element.matches() is available from Chromium 34/Firefox 34. So
|
// However, Element.matches() is available from Chromium 34/Firefox 34. So
|
||||||
// we fall back to slower document.querySelector() when Element.matches()
|
// we fall back to slower document.querySelector() when Element.matches()
|
||||||
|
|
Loading…
Reference in a new issue