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:
one year ago
by:
Guest
Go 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:
one year 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
data1-kwang
561/s
data0-kwang
552/s
View exact numbers
Test name
Executions per second
✓
data1-kwang
561 Ops/sec
data0-kwang
552 Ops/sec
Related benchmarks
for vs filter
Array.prototype.filter vs Lodash filter vs L
test array filter vs object destructure
javascriptTest2403191
Comments
Confirm delete:
Do you really want to delete benchmark?