check map, filter

Benchmark created on


Setup

const array = Array.from({ length: 1000 }, (_, i) =>i)

Test runner

Ready to run.

Testing in
TestOps/sec
map filter
const mapFilter = array.map(x => x).filter(x => x % 3 ===0)
ready
filter map
const filterMap = array.filter(x => x % 3 ===0).map(x => x)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.