We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fc67b2 commit a2ee7ffCopy full SHA for a2ee7ff
_benchmark/table.js
@@ -15,8 +15,10 @@ import {dist} from './_fixtures.js';
15
16
const parser = new ArgumentParser();
17
parser.add_argument('M');
18
+parser.add_argument('filter');
19
const args = parser.parse_args();
20
21
+const filter = new RegExp(args.filter, 'i');
22
global.range = range;
23
global.n = args.M;
24
global.measure = COUNTER;
@@ -119,7 +121,8 @@ const fds_finger_tree = {
119
121
};
120
122
123
const add = async (module, api, method) => {
- // If (!filter.test(module.name)) return;
124
+ if (!filter.test(module.name)) return;
125
+ if (!filter.test(method)) return;
126
const {title, methods} = await api.compile(module);
127
128
suite.addFunction(`${title} #${method}`, methods[method].run, {
0 commit comments