benchmark: fix chunky client benchmark execution
authorBrian White <mscdex@mscdex.net>
Wed, 25 Mar 2015 06:26:21 +0000 (02:26 -0400)
committerBrian White <mscdex@mscdex.net>
Fri, 3 Apr 2015 04:56:45 +0000 (00:56 -0400)
commita081c7c5222de844ed0a61d470b8334676249d66
tree7d73dd3adfa2f5b7dbf53801ecd4c96a38315c56
parentf1e5a13516d1b7472206fad8c4c20c249c60f1db
benchmark: fix chunky client benchmark execution

This commit fixes a few things for this benchmark:

1. Ensures the temporary directory for the unix socket exists.
2. Prevents the client code from being run directly because the
server script is the one that calls out the client code.
3. Ensures the server is closed once the client benchmarks have
finished.
4. Since this is an http benchmark, it should be moved to the http
benchmarks subdirectory.

PR-URL: https://github.com/iojs/io.js/pull/1257
Reviewed-By: Roman Reiss <me@silverwind.io>
benchmark/http/_chunky_http_client.js [moved from benchmark/net/chunky_http_client.js with 100% similarity]
benchmark/http/http_server_for_chunky_client.js [moved from benchmark/net/http_server_for_chunky_client.js with 76% similarity]