Functions | |
void | PerfFile (FILE *file, uint32_t n, const char *buffer, uint32_t size) |
Check the performance of writing to file. | |
void | PerfStream (std::ostream &stream, uint32_t n, const char *buffer, uint32_t size) |
Check the performance of writing to an output stream. | |
Performance System Tests
Note: these tests are (for real) scripts to be run. The output is the time (in nanoseconds) that the test required to perform the requested write operations.
Check the performance of writing to file.
file | The file to write to. |
n | The number of writes to perform. |
buffer | The buffer to write. |
size | The buffer size. |
Definition at line 26 of file perf-io.cc.
References NS_ABORT_MSG.
Check the performance of writing to an output stream.
stream | The output stream to write to. |
n | The number of writes to perform. |
buffer | The buffer to write. |
size | The buffer size. |
Definition at line 48 of file perf-io.cc.