Skip to content

Commit 1a1261d

Browse files
maclover7Stephen Belanger
authored andcommitted
test: convert buffer benchmark to runBenchmark
PR-URL: nodejs/node#15349 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
1 parent e6590ff commit 1a1261d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'use strict';
2+
3+
require('../common');
4+
5+
const runBenchmark = require('../common/benchmark');
6+
7+
runBenchmark('buffers',
8+
[
9+
'aligned=true',
10+
'args=1',
11+
'encoding=utf8',
12+
'len=2',
13+
'method=',
14+
'n=1',
15+
'noAssert=true',
16+
'pieces=1',
17+
'pieceSize=1',
18+
'search=@',
19+
'size=1',
20+
'source=array',
21+
'type=',
22+
'withTotalLength=0'
23+
24+
]);

0 commit comments

Comments
 (0)