| 998 | } |
| 999 | |
| 1000 | double 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 | |
| 1018 | double snprintfRAMCloud() |
| 1019 | { |