Benchmark and optimise allocations
Created by: penelopezone
This was allocating linear hashes per mock. Now it allocates at most one in the execution of the whole test suite, the default hash is a constant.
WIP, but here's an initial optimisation. I'll do as many as I can and get this cleaned up by the end of next weekend.