Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Js array intersection
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Browser:
Firefox 124
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
js
13916373.0 Ops/sec
lodash
4373309.5 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Tests:
js
var a = ['This is not Vietnam, this is bowling!', 'There are rules!', 'Dude.', 'It really tied the room together.'] var b = ['This is not Vietnam, this is bowling!', 'Nihilists', 'Dude.',] var c = a.filter(e=>b.includes(e))
lodash
var a = ['This is not Vietnam, this is bowling!', 'There are rules!', 'Dude.', 'It really tied the room together.'] var b = ['This is not Vietnam, this is bowling!', 'Nihilists', 'Dude.',] var c = _.intersection(a, b)