Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 QQ/7.2.0.0 TIM/3.0.0.417 V1_IPH_SQ_6.5.5_1_TIM_D Pixel/1125 Core/WKWebView Device/Apple(iPhone X) NetType/WIFI QBWebViewType/1 WKType/1
Mobile Safari 13
iOS 13.4
Mobile
4 years ago
Test name Executions per second
regex start 222.3 Ops/sec
startsWith 212.5 Ops/sec
regex end 158.1 Ops/sec
endsWith 216.4 Ops/sec
indexOf start 163.2 Ops/sec
indexOf end 161.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;