Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1
Mobile Safari 9
iOS 9.3.5
iPhone
8 years ago
Test name Executions per second
string n 3193968.5 Ops/sec
to string 3614480.8 Ops/sec
empty string plus n 4724851.0 Ops/sec
n plus empty string 4521775.0 Ops/sec
Script Preparation code:
Tests:
  • string n

  • to string

  • empty string plus n

  • n plus empty string


;