test performance of string types

8 months ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
Test name Executions per second
single quotes 213399824.0 Ops/sec
double quotes 227210448.0 Ops/sec
backticks 218636432.0 Ops/sec
Tests:
  • single quotes

    AخA
     
    'hi I\'m a peanut'
  • double quotes

     
    "hi I'm a peanut"
  • backticks

     
    `hi I'm a peanut`
Open this result on MeasureThat.net