Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array.from() vs Array.prototype.map.call() on NodeList
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/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Array.from()
352721.1 Ops/sec
Array.prototype.map.call()
475436.5 Ops/sec
HTML Preparation code:
<div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> <div>7</div> <div>8</div> <div>9</div>
Script Preparation code:
var els = document.querySelectorAll('div');
Tests:
Array.from()
Array.from(els, el => el.tagName);
Array.prototype.map.call()
Array.prototype.map.call(els, el => el.tagName);