Replace placeholders in template file with actual code. This makes it a lot easier to restructure the benchmark.