set stdout line-buffering in throughput tests
Line buffering allows monitoring progress via pipes or files, and as there is just one line of output per second, it doesn't affect performance Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
4483807e71
commit
6e7e1ca448
2 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,8 @@ int main (int argc, char **argv)
|
|||
dds_entity_t writer;
|
||||
ThroughputModule_DataType sample;
|
||||
|
||||
setvbuf (stdout, NULL, _IOLBF, 0);
|
||||
|
||||
if (parse_args(argc, argv, &payloadSize, &burstInterval, &burstSize, &timeOut, &partitionName) == EXIT_FAILURE) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue