// File: /workspace/github_cpp_makefile_star2_O1/wichtounet[P]articles/include/bench.hpp
// Function: void bench<plf::colony<Trivial<32>, std::allocator<Trivial<32>>, unsigned short>, std::chrono::duration<long, std::ratio<1l, 1000000l>>, FilledRandomInsert, RandomErase10>(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 $0xe8, %rsp
movq %rdi, 0x20(%rsp)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x9f6d6
movq (%rsi), %rcx
leaq (%rcx,%rax,4), %rax
movq %rax, 0x18(%rsp)
leaq 0x68(%rsp), %rbx
leaq 0xd347b(%rip), %r12     # 0x172948
movq %rcx, 0x28(%rsp)
movslq (%rcx), %rax
movq %rax, 0x8(%rsp)
xorl %r13d, %r13d
movq $0x0, 0x10(%rsp)
movq %rbx, %r15
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x34eea
callq 0x4040
movq %rax, 0x30(%rsp)
movq 0x88(%rsp), %rbp
cmpq 0x70(%rsp), %rbp
je 0x9f5af
movq 0x80(%rsp), %rbx
movq 0x90(%rsp), %r14
movq %r12, %rdi
leaq 0xd3433(%rip), %rsi     # 0x172960
movq %r12, %rdx
callq 0x32cc8
cmpq $0x2329, %rax           # imm = 0x2329
jb 0x9f56f
movq %rbx, 0x38(%rsp)
movq %rbp, 0x40(%rsp)
movq %r14, 0x48(%rsp)
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
leaq 0x38(%rsp), %rdx
callq 0x551e2
movq 0x50(%rsp), %rbx
movq 0x58(%rsp), %rbp
movq 0x60(%rsp), %r14
jmp 0x9f5a4
movzwl 0x2(%r14), %eax
leaq 0x2(%r14,%rax,2), %r14
shll $0x5, %eax
leaq 0x20(%rbp,%rax), %rbp
cmpq (%rbx), %rbp
jne 0x9f5a4
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x9f5a4
movq 0x18(%rax), %rcx
movzwl (%rcx), %ebp
leaq (%rcx,%rbp,2), %r14
shll $0x5, %ebp
addq 0x10(%rax), %rbp
movq %rax, %rbx
cmpq 0x70(%rsp), %rbp
jne 0x9f523
callq 0x4040
subq 0x30(%rsp), %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
addq %rdx, 0x10(%rsp)
movq %r15, %rbx
movq %r15, %rdi
callq 0xf268
incq %r13
cmpq $0x7, %r13
jne 0x9f4e6
movq 0x8(%rsp), %rax
movl %eax, %ebp
negl %ebp
cmovsl %eax, %ebp
movl $0x1, %r13d
cmpl $0xa, %ebp
leaq 0x78(%rsp), %r14
jb 0x9f653
movl $0x4, %r13d
movl %ebp, %eax
movl $0xd1b71759, %edx       # imm = 0xD1B71759
cmpl $0x63, %eax
jbe 0x9f64a
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x9f650
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x9f653
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r13d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x9f61a
addl $-0x3, %r13d
jmp 0x9f653
addl $-0x2, %r13d
jmp 0x9f653
decl %r13d
movq 0x8(%rsp), %r15
shrl $0x1f, %r15d
leal (%r13,%r15), %esi
movq %r14, 0x68(%rsp)
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x4220
addq 0x68(%rsp), %r15
movq %r15, %rdi
movl %r13d, %esi
movl %ebp, %edx
callq 0xc323
movq 0x10(%rsp), %rdx
movabsq $0x2492492492492493, %rax # imm = 0x2492492492492493
mulxq %rax, %rax, %rax
subq %rax, %rdx
shrq %rdx
addq %rax, %rdx
shrq $0x2, %rdx
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0xb24d3
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x9f6c2
callq 0x41a0
movq 0x28(%rsp), %rcx
addq $0x4, %rcx
cmpq 0x18(%rsp), %rcx
jne 0x9f4cd
movq 0x50feb(%rip), %rax     # 0xf06c8
cmpq %rax, 0x50fec(%rip)     # 0xf06d0
je 0x9f6ed
movq %rax, 0x50fe3(%rip)     # 0xf06d0
movq 0x50fe4(%rip), %rax     # 0xf06d8
cmpq 0x50fd5(%rip), %rax     # 0xf06d0
je 0x9f709
leaq 0x50fc4(%rip), %rdi     # 0xf06c8
callq 0x3480a
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x9f73c
callq 0x41a0
jmp 0x9f73c
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xf268
movq %rbx, %rdi
callq 0x42d0