<commit_before>'use strict';

require('../../setup');
var suite = new (require('benchmark')).Suite;
module.exports = suite;
var childproc = require('child_process');
var path = require('path');
var rewire = require('rewire');
var rpc = rewire('data/rpc');
var config = require('config');
var wait = require('wait.for');
var GameObject = require('model/GameObject');


// minimal GS configuration with one master and one worker process
var CONFIG = {net: {
	gameServers: {
		gs01: {host: '127.0.0.1', ports: [3000]},
	},
	rpc: {basePort: 7000},
}};
// dummy game object to call RPC functions on
var DUMMY_OBJ = new GameObject({
	tsid: 'LTESTOBJECT',
	add: function(a, b) { return a + b; },
});


var worker;


// called by the bench runner (i.e. only for the master process)
suite.asyncSetup = function(done) {<commit_msg>add missing config to fix rpc benchmark suite<commit_after>'use strict';

require('../../setup');
var suite = new (require('benchmark')).Suite;
module.exports = suite;
var childproc = require('child_process');
var path = require('path');
var rewire = require('rewire');
var rpc = rewire('data/rpc');
var config = require('config');
var wait = require('wait.for');
var GameObject = require('model/GameObject');


// minimal GS configuration with one master and one worker process
var CONFIG = {net: {
	gameServers: {
		gs01: {host: '127.0.0.1', ports: [3000]},
	},
	rpc: {basePort: 6000, timeout: 10000},
}};
// dummy game object to call RPC functions on
var DUMMY_OBJ = new GameObject({
	tsid: 'LTESTOBJECT',
	add: function(a, b) { return a + b; },
});


var worker;


// called by the bench runner (i.e. only for the master process)
suite.asyncSetup = function(done) {
{'fraction_non_alphanumeric': 0.16568047337278108, 'fraction_numerical': 0.021893491124260357, 'mean_word_length': 4.5625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '84054', 'n_tokens_mistral': 577, 'n_tokens_neox': 542, 'n_words': 183}