node/benchmark/_test-double-benchmarker.js
Joyee Cheung a3e71a8901 benchmark: add test double HTTP benchmarker
Refactor benchmark/_http-benchmarkers.js and add a test double
HTTP benchmarker for testing.

PR-URL: https://github.com/nodejs/node/pull/12121
Refs: https://github.com/nodejs/node/issues/12068
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-04-09 18:16:03 +08:00

8 lines
138 B
JavaScript

'use strict';
const http = require('http');
http.get(process.env.path, function() {
console.log(JSON.stringify({throughput: 1}));
});