|
|
|
@ -34,6 +34,7 @@ |
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
var os = require('os'); |
|
|
|
|
var console = require('console'); |
|
|
|
|
var BenchmarkClient = require('./benchmark_client'); |
|
|
|
|
var BenchmarkServer = require('./benchmark_server'); |
|
|
|
|
|
|
|
|
@ -49,6 +50,7 @@ exports.runClient = function runClient(call) { |
|
|
|
|
switch (request.argtype) { |
|
|
|
|
case 'setup': |
|
|
|
|
var setup = request.setup; |
|
|
|
|
console.log('ClientConfig %j', setup); |
|
|
|
|
client = new BenchmarkClient(setup.server_targets, |
|
|
|
|
setup.client_channels, |
|
|
|
|
setup.histogram_params, |
|
|
|
@ -118,6 +120,7 @@ exports.runServer = function runServer(call) { |
|
|
|
|
var stats; |
|
|
|
|
switch (request.argtype) { |
|
|
|
|
case 'setup': |
|
|
|
|
console.log('ServerConfig %j', request.setup); |
|
|
|
|
server = new BenchmarkServer('[::]', request.setup.port, |
|
|
|
|
request.setup.security_params); |
|
|
|
|
server.start(); |
|
|
|
|