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) 700366.9 Ops/sec
JSON.stringify (strings) 664845.8 Ops/sec
Template Strings (numbers) 0.0 Ops/sec
Template Strings (strings) 0.0 Ops/sec
String Concatenation (numbers) 1879156.4 Ops/sec
String Concatenation (strings) 1991186.5 Ops/sec
Script Preparation code:
Tests:
  • JSON.stringify (numbers)

  • JSON.stringify (strings)

  • Template Strings (numbers)

  • Template Strings (strings)

  • String Concatenation (numbers)

  • String Concatenation (strings)