Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
converting val to str
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Browser:
Chrome 140
Operating system:
Linux
Device Platform:
Desktop
Date tested:
11 months ago
template
10.9M/s
concat()
10.0M/s
concatenation
9.1M/s
String()
8.3M/s
View exact numbers
Test name
Executions per second
✓
template
10,879,431 Ops/sec
concat()
10,048,223 Ops/sec
concatenation
9,124,577 Ops/sec
String()
8,336,658 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let concat = ''.concat.bind('')
Tests:
template
`${alert}`
concatenation
alert+''
concat()
concat(alert)
String()
String(alert)