Home | History | Annotate | Download | only in tests

Lines Matching refs:workers

196     // If client/server pairs, then half the workers are
203 vector<sp<IBinder> > workers;
207 workers.push_back(serviceMgr->getService(generateServiceName(i)));
215 int target = cs_pair ? num % server_count : rand() % workers.size();
223 status_t ret = workers[target]->transact(BINDER_NOP, data, &reply);
277 int workers,
283 // Create all the workers and wait for them to spawn.
284 for (int i = 0; i < workers; i++) {
285 pipes.push_back(make_worker(i, iterations, workers, payload_size, cs_pair));
289 // Run the workers and wait for completion.
291 cout << "waiting for workers to complete" << endl;
298 double iterations_per_sec = double(iterations * workers) / (chrono::duration_cast<chrono::nanoseconds>(end - start).count() / 1.0E9);
301 // Collect all results from the workers.
305 for (int i = 0; i < workers; i++) {
311 // Kill all the workers.
312 cout << "killing workers" << endl;
314 for (int i = 0; i < workers; i++) {
334 int workers = 2;
348 cout << "\t-p : Split workers into client/server pairs." << endl;
351 cout << "\t-w N : Specify total number of workers." << endl;
355 workers = atoi(argv[i+1]);
370 // requests to all workers. If true, half
371 // the workers become clients and half servers
394 run_main(iterations, workers, payload_size, cs_pair, training_round=true);
398 run_main(iterations, workers, payload_size, cs_pair);