tl;dr: LLM struggle to write performant/correct code unless you use codeflash. The "trick" is that you run tests/benchmarks against the generated code. It is not clear whether codeflash does that for you, or you have to write your tests/benchmarks and then codeflash runs a loop trying different versions while testing against your code.