Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Set vs obj
(version: 0)
Comparing performance of:
Set vs Obj
Created:
5 years ago
by:
Guest
Jump to the latest result
Tests:
Set
let tracker = new Set(); const messageArray = [ {mac:"E4:2B:34:17:E3:E4",firstTimeSeen:"2020-03-10 13:18:07",lastTimeSeen:"2020-03-10 13:18:09",power:"-63",packets:"14",BSSID:"7A:8A:20:06:4D:6B",probedESSIDs:"CS Guest"}, {mac:"E4:2B:34:17:E3:E4",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:14",power:"-56",packets:"5",BSSID:"7A:8A:20:06:4D:6B",probedESSIDs:""}, {mac:"D4:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D2:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D1:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D3:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D5:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D6:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D7:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D8:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D9:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"DA:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"DB:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"DC:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"DF:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:1B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:2B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:4B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:5B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:6B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:7B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:8B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:9B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:AB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:BB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:CB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:DB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:EB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:FB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"E4:A4:71:D8:DF:DD",firstTimeSeen:"2020-03-10 13:19:17",lastTimeSeen:"2020-03-10 13:19:17",power:"-51",packets:"2",BSSID:"(not associated)",probedESSIDs:""} ]; function dupeCheck(array){ array.forEach(messageObject => { if (!tracker.has(messageObject.mac)){ tracker[messageObject.mac] = messageObject; } }); } dupeCheck(messageArray);
Obj
let trackin = {}; const messageArray = [ {mac:"E4:2B:34:17:E3:E4",firstTimeSeen:"2020-03-10 13:18:07",lastTimeSeen:"2020-03-10 13:18:09",power:"-63",packets:"14",BSSID:"7A:8A:20:06:4D:6B",probedESSIDs:"CS Guest"}, {mac:"E4:2B:34:17:E3:E4",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:14",power:"-56",packets:"5",BSSID:"7A:8A:20:06:4D:6B",probedESSIDs:""}, {mac:"D4:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D2:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D1:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D3:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D5:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D6:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D7:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D8:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D9:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"DA:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"DB:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"DC:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"DF:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:3B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:1B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:2B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:4B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:5B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:6B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:7B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:8B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:9B:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:AB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:BB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:CB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:DB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:EB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"D4:FB:04:6A:A2:7F",firstTimeSeen:"2020-03-10 13:19:13",lastTimeSeen:"2020-03-10 13:19:13",power:"-53",packets:"5",BSSID:"(not associated)",probedESSIDs:""}, {mac:"E4:A4:71:D8:DF:DD",firstTimeSeen:"2020-03-10 13:19:17",lastTimeSeen:"2020-03-10 13:19:17",power:"-51",packets:"2",BSSID:"(not associated)",probedESSIDs:""} ]; function dupyCheck(array){ array.forEach(messageObject => { if (!trackin[messageObject.mac]) { trackin[messageObject.mac] = messageObject; } }); } dupyCheck(messageArray);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Set
Obj
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
It appears that you have provided two JSON strings, one for the `messageArray` and another for the `benchmarkResult`. The `messageArray` seems to be a list of Wi-Fi devices detected by a network scanner, with each device represented by an object containing various attributes such as MAC address, first seen time, last seen time, power level, packets received, BSSID (Basic Service Set Identifier), and probed ESSIDs. On the other hand, the `benchmarkResult` is a list of benchmarking results in JSON format, with each result represented by an object containing various attributes such as the raw UA string, browser name, device platform, operating system, executions per second, and test name. However, there doesn't seem to be any direct relationship between these two data sets. One appears to be related to network scanning, while the other is related to benchmarking results. If you could provide more context or clarify how these two data sets are connected, I would be happy to help you analyze or process them further.
Related benchmarks:
Object speard vs assign
Object.assign() vs Reflect.set()
Object.setPrototypeOf vs Object literal
Dot property set notation VS Lodash.set (initial attribute existing 2)
new Set vs set.clear()
Comments
Confirm delete:
Do you really want to delete benchmark?