Browse Source

benchmark: update obsolete information pointer

A doc suggested in an error message is no longer the place to get the
information about required http benchmarkers. Update the error message
to point to the current location for the information.

PR-URL: https://github.com/nodejs/node/pull/12026
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
v7.x
Rich Trott 8 years ago
committed by Myles Borins
parent
commit
210250465a
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 8
      benchmark/_http-benchmarkers.js

8
benchmark/_http-benchmarkers.js

@ -88,9 +88,11 @@ exports.run = function(options, callback) {
benchmarker: exports.default_http_benchmarker benchmarker: exports.default_http_benchmarker
}, options); }, options);
if (!options.benchmarker) { if (!options.benchmarker) {
callback(new Error('Could not locate any of the required http ' + callback(new Error('Could not locate required http benchmarker. See ' +
'benchmarkers. Check benchmark/README.md for further ' + 'https://github.com/nodejs/node/blob/master/doc/' +
'instructions.')); 'guides/writing-and-running-benchmarks.md##http-' +
'benchmark-requirements ' +
'for further instructions.'));
return; return;
} }
const benchmarker = benchmarkers[options.benchmarker]; const benchmarker = benchmarkers[options.benchmarker];

Loading…
Cancel
Save