// File: /workspace/github_cpp_makefile_star2_O3/wichtounet[P]articles/include/bench.hpp
// Function: void bench<std::deque<Trivial<8>, std::allocator<Trivial<8>>>, std::chrono::duration<long, std::ratio<1l, 1000l>>, FilledRandom, Sort>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::initializer_list<int> const&)
void bench(const std::string& type, const std::initializer_list<int> &sizes){
    // create an element to copy so the temporary creation
    // and initialization will not be accounted in a benchmark
    for(auto size : sizes) {
        std::size_t duration = 0;

        for(std::size_t i=0; i<REPEAT; ++i) {
            auto container = CreatePolicy<Container>::make(size);

            Clock::time_point t0 = Clock::now();

            run<TestPolicy...>(container, size);

            Clock::time_point t1 = Clock::now();
            duration += std::chrono::duration_cast<DurationUnit>(t1 - t0).count();
        }

        graphs::new_result(type, std::to_string(size), duration / REPEAT);
    }

    CreatePolicy<Container>::clean();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq 0x8(%rsi), %rax
movq %rdi, 0x10(%rsp)
testq %rax, %rax
je 0x6b216
movq (%rsi), %rcx
leaq 0x48(%rsp), %rbx
leaq (%rcx,%rax,4), %rax
movq %rax, 0x8(%rsp)
movslq (%rcx), %rax
movq %rcx, 0x18(%rsp)
xorl %r15d, %r15d
movq %rax, (%rsp)
movl $0x7, %eax
movq (%rsp), %rsi
movq %rbx, %rdi
movq %rax, 0x38(%rsp)
movq %r15, 0x40(%rsp)
callq 0x331ee
callq 0x4040
movq 0x58(%rsp), %r14
movq 0x78(%rsp), %rbp
movq %rax, 0x30(%rsp)
cmpq %rbp, %r14
je 0x6b0e5
movq 0x90(%rsp), %rbx
movq 0x70(%rsp), %r13
movq 0x60(%rsp), %rcx
movq 0x68(%rsp), %r12
movq 0x80(%rsp), %r15
movq %r14, 0xf8(%rsp)
movq 0x88(%rsp), %rax
movq %rbp, 0xd8(%rsp)
movq %rbx, %r8
subq %r13, %r8
movq %rcx, 0x100(%rsp)
movq %rcx, 0x20(%rsp)
movq %rbp, %rcx
movq %r12, %rdx
movq %r12, 0x108(%rsp)
movq %r15, 0xe0(%rsp)
movq %rax, 0xe8(%rsp)
movq %r13, 0x110(%rsp)
movq %rax, 0x28(%rsp)
movq %rbx, 0xf0(%rsp)
shrq $0x3, %r8
cmpq $0x1, %rbx
adcq $-0x1, %r8
subq %r15, %rcx
subq %r14, %rdx
sarq $0x3, %rcx
sarq $0x3, %rdx
shlq $0x6, %r8
addq %rcx, %rdx
addq %r8, %rdx
lzcntq %rdx, %rdx
addl %edx, %edx
xorq $0x7e, %rdx
leaq 0xf8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x6bd07
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %r14, 0xb8(%rsp)
movq %rbp, 0x98(%rsp)
movq %r15, 0xa0(%rsp)
movq %rax, 0xc0(%rsp)
movq %r12, 0xc8(%rsp)
movq %rcx, 0xa8(%rsp)
movq %r13, 0xd0(%rsp)
movq %rbx, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x6bed3
callq 0x4040
subq 0x30(%rsp), %rax
movq 0x40(%rsp), %r15
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
addq %rdx, %r15
callq 0xc602
movq 0x38(%rsp), %rax
decq %rax
jne 0x6af92
movq (%rsp), %rax
movl $0x1, %r13d
leaq 0x58(%rsp), %r14
movl %eax, %r12d
negl %r12d
cmovsl %eax, %r12d
cmpl $0xa, %r12d
jb 0x6b193
movl $0x4, %r13d
movl $0xd1b71759, %edx       # imm = 0xD1B71759
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x6b18a
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x6b190
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x6b193
movl %eax, %ecx
imulq %rdx, %rcx
addl $0x4, %r13d
shrq $0x2d, %rcx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x6b15a
addl $-0x3, %r13d
jmp 0x6b193
addl $-0x2, %r13d
jmp 0x6b193
decl %r13d
movq (%rsp), %rbp
movl $0x2d, %edx
movq %r14, 0x48(%rsp)
movq %rbx, %rdi
shrl $0x1f, %ebp
leal (%r13,%rbp), %esi
callq 0x4220
addq 0x48(%rsp), %rbp
movl %r13d, %esi
movl %r12d, %edx
movq %rbp, %rdi
callq 0xc241
movabsq $0x2492492492492493, %rax # imm = 0x2492492492492493
movq %r15, %rdx
mulxq %rax, %rax, %rax
subq %rax, %r15
shrq %r15
addq %rax, %r15
shrq $0x2, %r15
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xb17ef
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x6b202
callq 0x41a0
movq 0x18(%rsp), %rcx
addq $0x4, %rcx
cmpq 0x8(%rsp), %rcx
jne 0x6af7e
movq 0x8440b(%rip), %rax     # 0xef628
cmpq %rax, 0x8440c(%rip)     # 0xef630
je 0x6b22d
movq %rax, 0x84403(%rip)     # 0xef630
cmpq %rax, 0x84404(%rip)     # 0xef638
je 0x6b242
leaq 0x843eb(%rip), %rdi     # 0xef628
callq 0x32f44
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%rsp), %rdi
movq %rax, %rbx
cmpq %r14, %rdi
je 0x6b275
callq 0x41a0
jmp 0x6b275
leaq 0x48(%rsp), %rdi
movq %rax, %rbx
callq 0xc602
movq %rbx, %rdi
callq 0x42d0