Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52
Linux
Other
8 years ago
Test name Executions per second
JSON.stringify (numbers) 716862.8 Ops/sec
JSON.stringify (strings) 710676.2 Ops/sec
Template Strings (numbers) 1806396.2 Ops/sec
Template Strings (strings) 1942313.0 Ops/sec
String Concatenation (numbers) 1846825.5 Ops/sec
String Concatenation (strings) 1907434.0 Ops/sec
Script Preparation code:
Tests:
  • JSON.stringify (numbers)

  • JSON.stringify (strings)

  • Template Strings (numbers)

  • Template Strings (strings)

  • String Concatenation (numbers)

  • String Concatenation (strings)