fix throws formatting
Include memory allocations in benchmark functions