Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
isType bench
(version: 0)
Comparing performance of:
in-op vs bool vs set
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var EDITABLE_STANDARD_TYPES = { __proto__: null, text: undefined, percent: undefined, phone: undefined, email: undefined, url: undefined, currency: undefined, number: undefined, boolean: undefined, 'date-local': undefined, date: undefined, }; var EDITABLE_STANDARD_TYPES_2 = { __proto__: null, text: true, percent: true, phone: true, email: true, url: true, currency: true, number: true, boolean: true, 'date-local': true, date: true, }; var EDITABLE_STANDARD_TYPES_3 = new Set(Object.keys(EDITABLE_STANDARD_TYPES_2));
Tests:
in-op
'text' in EDITABLE_STANDARD_TYPES; 'bar' in EDITABLE_STANDARD_TYPES;
bool
!!EDITABLE_STANDARD_TYPES_2['text'] !!EDITABLE_STANDARD_TYPES_2['bar']
set
EDITABLE_STANDARD_TYPES_3.has('text') EDITABLE_STANDARD_TYPES_3.has('bar')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
in-op
bool
set
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!
Related benchmarks:
undefined vs. typeof vs. in vs. hasOwnProperty 2
undefined vs. typeof vs. in vs. hasOwnProperty my3
undefined vs. typeof vs. in vs. hasOwnProperty my 4
undefined vs. typeof vs. in vs. hasOwnProperty (missing key)
value vs typeof
Comments
Confirm delete:
Do you really want to delete benchmark?