Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Single item array to string
What is the fastest way to convert an array with a single item to a string
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser:
Chrome 131
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
at
148.6M/s
by index
139.4M/s
join
38.6M/s
toString
20.0M/s
View exact numbers
Test name
Executions per second
✓
at
148,591,680 Ops/sec
by index
139,421,568 Ops/sec
join
38,569,664 Ops/sec
toString
19,960,548 Ops/sec
Script Preparation code:
var itemArr = ['Item']
Tests:
toString
itemArr.toString()
by index
itemArr[0]
at
itemArr.at(0)
join
itemArr.join('')