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
// requires request, measured, optimist and microtime npm modules | |
var util = require('util') | |
, request = require('request') | |
, microtime = require('microtime') | |
, measured = require('measured') | |
, collection = new measured.Collection('http') | |
, argv = require('optimist').usage('node load.js -c [concurrent] -n [total] url').argv; | |
var c = argv.c || 1 | |
, n = argv.n || 1, uri = argv._[0] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dojo Stateful Replication</title> | |
<script> | |
var dojoConfig = { | |
baseUrl: '/js/dojo/1.7.0/dojo', | |
}; | |
</script> | |
<script src="/js/dojo/1.7.0/dojo/dojo.js"></script> |
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 /opt/toolbar/app-cluster.js 8080 | |
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: EBADF, Bad file descriptor '/opt/toolbar/package.json' | |
at Object.openSync (fs.js:221:18) | |
at Object.readFileSync (fs.js:112:15) | |
at Object.<anonymous> (/opt/toolbar/app-cluster.js:12:34) | |
at Module._compile (module.js:404:26) |
NewerOlder