Added benchmarking code and upped optimization levels