JQuery: find with selected selector vs filter selected selector

find the best solution for optimize getting selected option
4 years ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Test name Executions per second
with selected selector 87193.2 Ops/sec
with selected selector in filter 91896.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • with selected selector

  • with selected selector in filter

Open this result on MeasureThat.net