This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ wrk -s wrk_report.lua -t 1 -c 1 -d 1m http://target.host/test | |
| Running 1m test @ http://target.host/test | |
| 1 threads and 1 connections | |
| Thread Stats Avg Stdev Max +/- Stdev | |
| Latency 0.94ms 2.83ms 38.04ms 94.75% | |
| Req/Sec 3.24k 677.21 4.40k 65.67% | |
| 193542 requests in 1.00m, 18.64MB read <----- | |
| Requests/sec: 3225.03 <----- | |
| Transfer/sec: 318.09KB | |
| ------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat base/index.js | |
| var http = require('http'); | |
| http.createServer(function(req, res) | |
| { | |
| res.end('ok'); | |
| }).listen(80); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var common = require('../common'); | |
| var assert = common.assert; | |
| var http = require('http'); | |
| var FormData = require(common.dir.lib + '/form_data'); | |
| var CRLF = '\r\n'; | |
| var testHeader = 'X-Test-Fake: 123'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // nodeCompatId: true | |
| // baseUrl: /js/ | |
| // ------------------------------ | |
| // When I require local resource, like | |
| require(['app/bla/870411124'], function(){}); | |
| // requirejs.load gets following arguments: | |
| // url: /js/app/bla/870411124.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Filepath: node-modules/my_module/index.js | |
| var mutable = require('./mutable.js') | |
| , defaults = require('./defaults.json') | |
| ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module['exports'] = function echoHttp (hook) { | |
| console.log("Console messages are sent to /logs"); | |
| console.log(hook.params); | |
| console.log(hook.req.path); | |
| console.log(hook.req.method); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Node.js CheatSheet. | |
| // Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
| // Download: http://nodejs.org/download/ | |
| // More: http://nodejs.org/api/all.html | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| make: *** [Release/obj.target/ffi_bindings/src/ffi.o] Error 1 | |
| make: Leaving directory `/home/travis/build/alexindigo/buster-functional/node_modules/buster/node_modules/buster-ci/node_modules/buster-ci-agent/node_modules/ffi/build' | |
| gyp ERR! build error | |
| gyp ERR! stack Error: `make` failed with exit code: 2 | |
| gyp ERR! stack at ChildProcess.onExit (/home/travis/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) | |
| gyp ERR! stack at ChildProcess.emit (events.js:110:17) | |
| gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12) | |
| gyp ERR! System Linux 2.6.32-042stab090.5 | |
| gyp ERR! command "node" "/home/travis/.nvm/versions/node/v0.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
| gyp ERR! cwd /home/travis/build/alexindigo/buster-functional/node_modules/buster/node_modules/buster-ci/node_modules/buster-ci-agent/node_modules/ffi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| configure: function(conf) | |
| { | |
| conf.on('load:framework', function(rs) | |
| { | |
| rs.addResource({ | |
| path: '/buster/functional_mixin.js', | |
| content: injection | |
| }); | |
| rs.loadPath.append('/buster/functional_mixin.js'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| respond: function (req, res) { | |
| if (!handle(req.url)) { return; } | |
| var resource; | |
| var parsedUrl = parseUrl(req.url); | |
| var path = parsedUrl.pathname; | |
| var mimeType = parsedUrl.params.rampMimeType; | |
| var mounted = getMounted(path); |