Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
String addition + vs constructor vs template
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Browser:
Chrome 143
Operating system:
Windows
Device Platform:
Desktop
Date tested:
7 months ago
Addition
150.6M/s
template
137.9M/s
Constructor
96.3M/s
View exact numbers
Test name
Executions per second
✓
Addition
150,616,480 Ops/sec
template
137,915,744 Ops/sec
Constructor
96,341,584 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let a = 1;
Tests:
Addition
let b = "a" + a + "c";
Constructor
let b = String("a", a, "c");
template
let b = `a${a}c`;