// File: /workspace/github_cpp_makefile_star2_O1/emilisb[P]OOP-4/src/main.cpp
// Function: benchmarkInsert(unsigned long)
void benchmarkInsert(size_t size) {
    vector<int> vec;
    std::vector<int> stdvec;
    Timer t;

    std::cout << "Benchmark: inserting " << size << " elements" << std::endl;

    t.start();

    for (int i = 0; i < size; i++) {
        vec.push_back(i);
    }

    std::cout << "My vector: << " << t.duration() << " ms" << std::endl;

    t.start();

    for (int i = 0; i < size; i++) {
        stdvec.push_back(i);
    }

    std::cout << "STD vector: << " << t.duration() << " ms" << std::endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x2130
movq %rax, 0x40(%rsp)
movq %r14, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq 0x3c80(%rip), %rdi      # 0x5fc8
leaq 0x1d01(%rip), %rsi      # 0x4050
movl $0x15, %edx
callq 0x2150
movq 0x3c68(%rip), %rdi      # 0x5fc8
movq %rbx, %rsi
callq 0x20b0
movq %rax, %r14
leaq 0x1cf4(%rip), %rsi      # 0x4066
movl $0x9, %edx
movq %rax, %rdi
callq 0x2150
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x8(%rsp), %rdi
callq 0x30dc
movl $0x0, 0x4(%rsp)
testq %rbx, %rbx
je 0x23e3
leaq 0x30(%rsp), %r14
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x29da
movslq 0x4(%rsp), %rax
incq %rax
movl %eax, 0x4(%rsp)
cmpq %rbx, %rax
jb 0x23c7
movq 0x3bde(%rip), %rdi      # 0x5fc8
leaq 0x1c7f(%rip), %rsi      # 0x4070
movl $0xe, %edx
callq 0x2150
leaq 0x8(%rsp), %rdi
callq 0x30ea
movq 0x3bbc(%rip), %rdi      # 0x5fc8
movl %eax, %esi
callq 0x2190
movq %rax, %r14
leaq 0x1c62(%rip), %rsi      # 0x407f
movl $0x3, %edx
movq %rax, %rdi
callq 0x2150
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq 0x8(%rsp), %rdi
callq 0x30dc
movl $0x0, 0x4(%rsp)
testq %rbx, %rbx
je 0x24a9
xorl %eax, %eax
leaq 0x10(%rsp), %r14
leaq 0x4(%rsp), %r15
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x248d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x2498
movq %r14, %rdi
movq %r15, %rdx
callq 0x2e24
movslq 0x4(%rsp), %rax
incq %rax
movl %eax, 0x4(%rsp)
cmpq %rbx, %rax
jb 0x2474
movq 0x3b18(%rip), %rdi      # 0x5fc8
leaq 0x1bcc(%rip), %rsi      # 0x4083
movl $0xf, %edx
callq 0x2150
leaq 0x8(%rsp), %rdi
callq 0x30ea
movq 0x3af6(%rip), %rdi      # 0x5fc8
movl %eax, %esi
callq 0x2190
movq %rax, %rbx
leaq 0x1b9c(%rip), %rsi      # 0x407f
movl $0x3, %edx
movq %rax, %rdi
callq 0x2150
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2120
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x252e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x254f
movq 0x38(%rsp), %rsi
shlq $0x2, %rsi
callq 0x2140
movq $0x0, 0x40(%rsp)
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x255d
jmp 0x255d
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2577
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2598
movq 0x38(%rsp), %rsi
shlq $0x2, %rsi
callq 0x2140
movq $0x0, 0x40(%rsp)
movq %rbx, %rdi
callq 0x21a0