Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135
Mac OS X 10.15.7
Desktop
one year ago
filter().map()
48/s
map().filter()
37/s
flatMap()
25/s
View exact numbers
Test name Executions per second
filter().map() 48 Ops/sec
map().filter() 37 Ops/sec
flatMap() 25 Ops/sec
Script Preparation code:
Tests: