26 lines
No EOL
423 B
C++
26 lines
No EOL
423 B
C++
#include <iostream>
|
|
#include "LSString.h"
|
|
#include "Timer.h"
|
|
|
|
#define RUNS 50U
|
|
#define PAYLOAD "187"
|
|
|
|
int main()
|
|
{
|
|
printf("LSString:\n");
|
|
printf("Number of runs: %d:\n", (int)RUNS);
|
|
Timer ttt;
|
|
for (size_t zRun = 1; zRun <= RUNS; zRun++)
|
|
{
|
|
printf("Run: %2d: ", (int)zRun);
|
|
|
|
Timer tt;
|
|
LSString s("361");
|
|
|
|
for (size_t z = 0; z < RUNS * 187; z++)
|
|
{
|
|
s.Append(PAYLOAD);
|
|
}
|
|
}
|
|
return 0;
|
|
} |