Skip to content

Commit

Permalink
add some console messages to node qps worker
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Apr 14, 2016
1 parent 8c839e8 commit c578e44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node/performance/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

'use strict';

var console = require('console');
var worker_service_impl = require('./worker_service_impl');

var grpc = require('../../../');
Expand All @@ -48,6 +49,7 @@ function runServer(port) {
var address = '0.0.0.0:' + port;
server.bind(address, server_creds);
server.start();
console.log('running QPS worker on %s', address);
return server;
}

Expand Down
3 changes: 3 additions & 0 deletions src/node/performance/worker_service_impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'use strict';

var os = require('os');
var console = require('console');
var BenchmarkClient = require('./benchmark_client');
var BenchmarkServer = require('./benchmark_server');

Expand All @@ -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,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c578e44

Please sign in to comment.