Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
single find (500) 1156038.4 Ops/sec
double same find (500) 571139.5 Ops/sec
double different find (500) 567193.9 Ops/sec
single find (100) 3761652.8 Ops/sec
double same find (100) 2099756.8 Ops/sec
double different find (100) 2137610.2 Ops/sec
Script Preparation code:
Tests:
  • single find (500)

  • double same find (500)

  • double different find (500)

  • single find (100)

  • double same find (100)

  • double different find (100)