Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
String literals creation vs already created string and concatination v2
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Browser:
Firefox 120
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
String literals creation
10533.1 Ops/sec
Already created string and concatination
10608.7 Ops/sec
Script Preparation code:
var BASE_FOLDER = './folder/' var REPEAT_TIMES = 100_000
Tests:
String literals creation
var newFolder = `./folder/${'FILE_NAME'}`
Already created string and concatination
var newFolder = BASE_FOLDER + 'FILE_NAME'