21 ankerl::nanobench::Bench
bench;
23 bench.minEpochIterations (2000);
25 bench.minEpochIterations (400000);
29 for (
int d= 1;
d < 6;
d++) {
32 bench.run (
"convert hexadecimal string to int",
35 bench.run (
"convert signed int to hexadecimal string",
37 bench.run (
"convert unsigned int to hexadecimal string",
41 ankerl::nanobench::Bench
bench2;
43 .minEpochTime (std::chrono::milliseconds (10))
44 .run (
"convert document to hexadecimal string, legacy",
51 "convert document to hexadecimal string, using binary_to_hexadecimal",
The list class represents a linked list.
string string_load(url u)
static ankerl::nanobench::Bench bench
string binary_to_hexadecimal(string bin)
Converts a binary stream to its hexadecimal represention.
string as_hexadecimal(int i, int len)
Converts an unsigned integer to a hexadecimal string with a fixed length.
static const char * hex_string
int from_hex(string s)
Converts a hexadecimal string to an integer.