Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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
Benchmark engine:
Benchmark.js
Array.prototype.map.call()
475K/s
Array.from()
353K/s
View exact numbers
Test name
Executions per second
✓
Array.prototype.map.call()
475,436 Ops/sec
Array.from()
352,721 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);