A Discrete-Event Network Simulator
API
Performance System Tests

Performance System Tests. More...

+ Collaboration diagram for Performance System Tests:

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...
 

Detailed Description

Performance System Tests.

Note: these tests are (for real) scripts to be run. The ouput is the time (in nanoseconds) that the test required to perform the requested write operations.

Function Documentation

◆ PerfFile()

void PerfFile ( FILE *  file,
uint32_t  n,
const char *  buffer,
uint32_t  size 
)

Check the performance of writing to file.

Parameters
fileThe file to write to.
nThe number of writes to perform.
bufferThe buffer to write.
sizeThe buffer size.

Definition at line 40 of file perf-io.cc.

References create-module::file, and NS_ABORT_MSG.

◆ PerfStream()

void PerfStream ( std::ostream &  stream,
uint32_t  n,
const char *  buffer,
uint32_t  size 
)

Check the performance of writing to an output stream.

Parameters
streamThe output stream to write to.
nThe number of writes to perform.
bufferThe buffer to write.
sizeThe buffer size.

Definition at line 62 of file perf-io.cc.