MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / snprintStatic100Char

Function snprintStatic100Char

runtime/Perf.cc:1000–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000double snprintStatic100Char()
1001{
1002 int count = 1000000;
1003 char buffer[1000];
1004
1005 uint64_t start = Cycles::rdtsc();
1006 Util::serialize();
1007 for (int i = 0; i < count; ++i) {
1008 snprintf(buffer, 1000,
1009 "aEw6ppfz3QMmDXBm91v10TxzCWdTaWUUX9ta0Fihl86Ta9nlFN"
1010 "JtAIDDjg9ApCgEwHvLfYZ2mTCHyMouslDI9Mvq2mvFSaNof8aJ");
1011 }
1012 Util::serialize();
1013 uint64_t stop = Cycles::rdtsc();
1014
1015 return Cycles::toSeconds(stop - start)/count;
1016}
1017
1018double snprintfRAMCloud()
1019{

Callers

nothing calls this directly

Calls 2

rdtscFunction · 0.85
serializeFunction · 0.70

Tested by

no test coverage detected