diff options
Diffstat (limited to 'perf/perf.c')
| -rw-r--r-- | perf/perf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perf/perf.c b/perf/perf.c index 4827d4a2..2e631a01 100644 --- a/perf/perf.c +++ b/perf/perf.c @@ -219,13 +219,15 @@ do_inproc_lat(int argc, char **argv) ia.count = parse_int(argv[1], "count"); ia.func = latency_server; - // Sleep a bit. - nng_usleep(100000); if ((rv = nni_thr_init(&thr, do_inproc, &ia)) != 0) { die("Cannot create thread: %s", nng_strerror(rv)); } nni_thr_run(&thr); + + // Sleep a bit. + nng_usleep(100000); + latency_client("inproc://latency_test", ia.msgsize, ia.count); nni_thr_fini(&thr); } |
