Bugzilla – Attachment #854: benchmark for bug #901
#include <iostream>
#include <vector>
#include <stdlib.h>
#include "ns3/mac48-address.h"
using namespace ns3;
int main (int argc, char *argv[])
{
Mac48Address ad1, ad2;
if (argc < 2)
std::cerr << "usage: bench-mac48 NUM_REPETITIONS" << std::endl;
return 1;
}
int numRepetitions = atoi (argv[1]);
volatile bool a;
for (int repetition = 0; repetition < numRepetitions; ++repetition)
a = ad1 < ad2;
return 0;
['internet-stack', 'csma-cd', 'point-to-point'])
obj.source = 'print-introspected-doxygen.cc'
obj = bld.create_ns3_program('bench-mac48', ['node'])
obj.source = 'bench-mac48.cc'