Commit | Line | Data |
---|---|---|
4676a95c | 1 | import { bench, group, run } from 'tatami-ng' |
adad2e80 | 2 | |
ab9a08f3 JB |
3 | group('Is undefined', () => { |
4 | bench('=== undefined', (value = undefined) => { | |
adad2e80 | 5 | return value === undefined |
ab9a08f3 JB |
6 | }) |
7 | bench("typeof === 'undefined'", (value = undefined) => { | |
adad2e80 | 8 | return typeof value === 'undefined' |
adad2e80 | 9 | }) |
ab9a08f3 JB |
10 | }) |
11 | ||
12 | await run({ | |
ebf80fe4 | 13 | units: true, |
ab9a08f3 | 14 | }) |