repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[benchmarks-js.git]
/
is-undefined.mjs
diff --git
a/is-undefined.mjs
b/is-undefined.mjs
index b720507111561c7b5337ca88aec132c5c692ee9f..933f6a24acf7c06e054394ad17593d487da853b2 100644
(file)
--- a/
is-undefined.mjs
+++ b/
is-undefined.mjs
@@
-1,28
+1,14
@@
-import
Benchmark from 'benny
'
+import
{ bench, group, run } from 'tatami-ng
'
-Benchmark.suite(
- 'Is undefined',
- Benchmark.add('=== undefined', (value = undefined) => {
+group('Is undefined', () => {
+ bench('=== undefined', (value = undefined) => {
return value === undefined
return value === undefined
- })
,
-
Benchmark.add
("typeof === 'undefined'", (value = undefined) => {
+ })
+
bench
("typeof === 'undefined'", (value = undefined) => {
return typeof value === 'undefined'
return typeof value === 'undefined'
- }),
- Benchmark.cycle(),
- Benchmark.complete(),
- Benchmark.save({
- file: 'is-undefined',
- format: 'json',
- details: true
- }),
- Benchmark.save({
- file: 'is-undefined',
- format: 'chart.html',
- details: true
- }),
- Benchmark.save({
- file: 'is-undefined',
- format: 'table.html',
- details: true
})
})
-).catch(console.error)
+})
+
+await run({
+ units: true,
+})