So I'm trying to figure out why, in the following example, Code1, which uses the prepare strategy, benchmarks slower than Code2, which uses repeated dos?
Your benchmark code has a severe flaw in that it measures quite a bit of argument packing and unpacking besides the DBI calls.
In reply to Re: DBI do vs prepare
by chromatic
in thread DBI do vs prepare
by BrianC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |