A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Performance System Tests
+ 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.
 
void PerfStream (std::ostream &stream, uint32_t n, const char *buffer, uint32_t size)
 Check the performance of writing to an output stream.
 

Detailed Description

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.

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 26 of file perf-io.cc.

References 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 48 of file perf-io.cc.