Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36
Chrome 62
Linux
Other
7 years ago
Test name Executions per second
endsWith 1629800.6 Ops/sec
regex 5781464.0 Ops/sec
Script Preparation code:
Tests:
  • endsWith

  • regex