0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/benchmark/http
Andreas Madsen f99471b2ae benchmark: refactor to use process.send
This removes the need for parsing stdout from the benchmarks. If the
process wasn't executed by fork, it will just print like it used to.

This also fixes the parsing of CLI arguments, by inferring the type
from the options object instead of the value content.

Only two benchmarks had to be changed:

* http/http_server_for_chunky_client.js this previously used a spawn
now it uses a fork and relays the messages using common.sendResult.

* misc/v8-bench.js this utilized that v8/benchmark/run.js called
global.print and reformatted the input. It now interfaces directly
with the benchmark runner global.BenchmarkSuite.

PR-URL: https://github.com/nodejs/node/pull/7094
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-07-26 13:21:39 +02:00
..
_chunky_http_client.js benchmark: remove unused variables 2016-07-10 20:13:14 -07:00
_http_simple.js benchmark: move http_simple.js to http directory 2016-07-26 12:48:23 +02:00
bench-parser.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
check_invalid_header_char.js http: optimize checkInvalidHeaderChar() 2016-06-14 15:13:00 -04:00
check_is_http_token.js benchmark: increase http token check iterations 2016-06-14 15:13:00 -04:00
chunked.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
client-request-body.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
cluster.js benchmark: move http_simple.js to http directory 2016-07-26 12:48:23 +02:00
end-vs-write-end.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
http_server_for_chunky_client.js benchmark: refactor to use process.send 2016-07-26 13:21:39 +02:00
simple.js benchmark: move http_simple.js to http directory 2016-07-26 12:48:23 +02:00