Performance System Tests. More...
Functions | |
void | PerfFile (FILE *file, uint32_t n, const char *buffer, uint32_t size) |
Check the performance of writing to file. More... | |
void | PerfStream (std::ostream &stream, uint32_t n, const char *buffer, uint32_t size) |
Check the performance of writing to an output stream. More... | |
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.
void PerfFile | ( | FILE * | file, |
uint32_t | n, | ||
const char * | buffer, | ||
uint32_t | size | ||
) |
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 37 of file perf-io.cc.
References create-module::file, and NS_ABORT_MSG.
void PerfStream | ( | std::ostream & | stream, |
uint32_t | n, | ||
const char * | buffer, | ||
uint32_t | size | ||
) |
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 59 of file perf-io.cc.