16enum class Difference {
27 std::vector<std::pair<uint256, uint256>>
pairs;
35 lhs.
begin()[position] = i % 2 == 0 ? 0 : 255;
36 rhs.begin()[position] = i % 2 == 0 ? 255 : 0;
43template <
typename Comparator>
47 bench.batch(
pairs.size()).unit(
"comparison").run([&] {
uint256 rand256() noexcept
generate a random uint256.
Main entry point to nanobench's benchmarking facility.
static constexpr unsigned int size()
constexpr unsigned char * begin()
void doNotOptimizeAway(Arg &&arg)
Makes sure none of the given arguments are optimized away by the compiler.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.