Moved benchmark to its own directory and added multicore testing + a README
This commit is contained in:
parent
d4fe59d154
commit
b37a8f63be
11 changed files with 160 additions and 1337 deletions
11
benchmark/socketioLoadTest.js
Normal file
11
benchmark/socketioLoadTest.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
setYRandom
|
||||
};
|
||||
|
||||
function setYRandom(context, events, done) {
|
||||
context.vars.x = (883 + Math.round(Math.random() * 300));
|
||||
context.vars.y = (270 + Math.round(Math.random() * 300));
|
||||
return done();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue