A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bench-packets.cc File Reference
#include "ns3/system-wall-clock-ms.h"
#include "ns3/packet.h"
#include "ns3/packet-metadata.h"
#include <iostream>
#include <sstream>
#include <string>
#include <stdlib.h>
+ Include dependency graph for bench-packets.cc:

Go to the source code of this file.

Classes

class  BenchHeader< N >
 
class  BenchTag< N >
 

Functions

static void benchA (uint32_t n)
 
static void benchB (uint32_t n)
 
static void benchC (uint32_t n)
 
static void benchD (uint32_t n)
 
static void C1 (Ptr< Packet > p)
 
static void C2 (Ptr< Packet > p)
 
int main (int argc, char *argv[])
 
static void runBench (void(*bench)(uint32_t), uint32_t n, char const *name)
 

Function Documentation

static void benchA ( uint32_t  n)
static

Definition at line 186 of file bench-packets.cc.

References ns3::Packet::AddHeader(), ns3::Packet::Copy(), and ns3::Packet::RemoveHeader().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void benchB ( uint32_t  n)
static

Definition at line 202 of file bench-packets.cc.

References ns3::Packet::AddHeader().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void benchC ( uint32_t  n)
static

Definition at line 231 of file bench-packets.cc.

References ns3::Packet::AddHeader(), and C1().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void benchD ( uint32_t  n)
static

Definition at line 162 of file bench-packets.cc.

References ns3::Packet::AddHeader(), ns3::Packet::AddPacketTag(), ns3::Packet::Copy(), ns3::Packet::RemoveHeader(), and ns3::Packet::RemovePacketTag().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void C1 ( Ptr< Packet p)
static

Definition at line 223 of file bench-packets.cc.

References C2(), and ns3::Packet::RemoveHeader().

Referenced by benchC().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void C2 ( Ptr< Packet p)
static

Definition at line 215 of file bench-packets.cc.

References ns3::Packet::RemoveHeader().

Referenced by C1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 261 of file bench-packets.cc.

References benchA(), benchB(), benchC(), benchD(), and runBench().

+ Here is the call graph for this function:

static void runBench ( void(*)(uint32_t)  bench,
uint32_t  n,
char const *  name 
)
static

Definition at line 246 of file bench-packets.cc.

References ns3::SystemWallClockMs::End(), and ns3::SystemWallClockMs::Start().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: