Skip to content

Commit 0ec4ccc

Browse files
authored
benchmack: no use internals
1 parent 154986f commit 0ec4ccc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

benchmark/http/check_invalid_header_char.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const common = require('../common.js');
4+
// TODO: benchmark has access to internal modules?
45
const _checkInvalidHeaderChar = require('_http_common')._checkInvalidHeaderChar;
56

67
const groupedInputs = {

benchmark/http/check_is_http_token.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const common = require('../common.js');
4+
// TODO: benchmark has access to internal modules?
45
const _checkIsHttpToken = require('_http_common')._checkIsHttpToken;
56

67
const bench = common.createBenchmark(main, {

benchmark/http/set_header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const common = require('../common.js');
4-
const { OutgoingMessage } = require('_http_outgoing');
4+
const { OutgoingMessage } = require('http');
55

66
const bench = common.createBenchmark(main, {
77
value: [

0 commit comments

Comments
 (0)