         default : false
         type : 'boolean'
     },
+    optimizeConnection : {
+        full : 'optimize-connection'
+        default : true
+        type : 'boolean'
+    },
+    batchSize : {
+        full : "batch-size"
+        default : 20
+        type : "number"
+    },
     configFile : {
         full : 'configFile'
         default : '#{__dirname}/chat_benchmark.conf'

request          = require('request')
lodash           = require('lodash')
debug            = require('debug')

benchmarkConfig = require('./benchmark_config')
routes = require('../../src/server/application_manager/routes')

                        @_serverEventHandler(original, arguments)
                    )
            )
            if @optimizeConnection
                @once('startBenchmark', ()=>
                    @_nextEvent()
                )
            else        
                timers.setImmediate(()=>
                    @_nextEvent()
                )

            #logger("#{@id} emit clientEngineReady")
            @emit("clientEngineReady")

        @socket.on('disconnect', ()=>
            @stop()
