Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
asdasdasd-kwang
(version: 1)
Comparing performance of:
data0-kwang vs data1-kwang
Created:
11 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const strings = Array.from(Array(1000), ()=>Math.random() < 0.5 ? "OK" : "ERROR"); const numbers = strings.map(it=>it === 'OK' ? 1 : 2); var DATA = [strings, numbers]
Tests:
data0-kwang
DATA[0].filter(it=>{ if (it === 'OK') console.log("ok") else console.warn('not ok') })
data1-kwang
DATA[1].filter(it=>{ if (it === 1) console.log("ok") else console.warn('not ok') })
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
data0-kwang
data1-kwang
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
11 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser/OS:
Chrome 138 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
data0-kwang
552.4 Ops/sec
data1-kwang
560.6 Ops/sec
Related benchmarks:
Array filter falsy
for vs filter
Array.prototype.filter vs Lodash filter vs L
loop/filter test
test array filter vs object destructure
test array filter vs object destructure deux
deux array filter fn named vs anon
third array filter fn named vs anon
javascriptTest2403191
Comments
Confirm delete:
Do you really want to delete benchmark?