mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
a3e71a8901
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>
8 lines
138 B
JavaScript
8 lines
138 B
JavaScript
'use strict';
|
|
|
|
const http = require('http');
|
|
|
|
http.get(process.env.path, function() {
|
|
console.log(JSON.stringify({throughput: 1}));
|
|
});
|