diff options
author | Johan Bergström <bugs@bergstroem.nu> | 2015-02-27 10:00:07 +1100 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-03-04 20:25:41 -0800 |
commit | a45d4f8fd61c05c98d6f723ec14d4a7285de5256 (patch) | |
tree | 405b5d99b9bf87a7ef44d96a9711f570fe06c88b /benchmark | |
parent | 555a7c48cf3b038f9627591cf51b68387f8de36a (diff) | |
download | nodejs-a45d4f8fd61c05c98d6f723ec14d4a7285de5256.tar.gz nodejs-a45d4f8fd61c05c98d6f723ec14d4a7285de5256.tar.bz2 nodejs-a45d4f8fd61c05c98d6f723ec14d4a7285de5256.zip |
build: remove tools/wrk from the tree
wrk is an optional tool that some of the http benchmarks uses. The removal
doesn't affect any users. Developers are assumed to install it before running
the tests.
This change reduces the tarball by 5%
PR-URL: https://github.com/iojs/io.js/pull/982
Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/README.md | 6 | ||||
-rw-r--r-- | benchmark/common.js | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/benchmark/README.md b/benchmark/README.md index ab168911a..0568f3502 100644 --- a/benchmark/README.md +++ b/benchmark/README.md @@ -5,11 +5,7 @@ io.js APIs. ## prerequisites -Most of the http benchmarks require `wrk` to be compiled beforehand. - -```sh -make wrk -``` +Most of the http benchmarks require `wrk` and `ab` being installed. ## How to run tests diff --git a/benchmark/common.js b/benchmark/common.js index 06f26d1ce..2e3cedced 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -79,14 +79,13 @@ function Benchmark(fn, options) { // benchmark an http server. Benchmark.prototype.http = function(p, args, cb) { var self = this; - var wrk = path.resolve(__dirname, '..', 'tools', 'wrk', 'wrk'); var regexp = /Requests\/sec:[ \t]+([0-9\.]+)/; var url = 'http://127.0.0.1:' + exports.PORT + p; args = args.concat(url); var out = ''; - var child = spawn(wrk, args); + var child = spawn('wrk', args); child.stdout.setEncoding('utf8'); |