aboutsummaryrefslogtreecommitdiff
path: root/benchmark/util
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/util')
-rw-r--r--benchmark/util/inspect.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/benchmark/util/inspect.js b/benchmark/util/inspect.js
index 913850690c..35253ac966 100644
--- a/benchmark/util/inspect.js
+++ b/benchmark/util/inspect.js
@@ -22,7 +22,8 @@ const bench = common.createBenchmark(main, {
'Error',
'Array',
'TypedArray',
- 'TypedArray_extra'
+ 'TypedArray_extra',
+ 'Number'
],
option: Object.keys(opts)
});
@@ -92,6 +93,9 @@ function main({ method, n, option }) {
obj[Symbol('baz')] = 5;
benchmark(n, obj, options);
break;
+ case 'Number':
+ benchmark(n, 0, options);
+ break;
default:
throw new Error(`Unsupported method "${method}"`);
}