I made a few tests, first I tested mysql prepared statement with $pdo->prepare()
and $insert_sth->execute()
for 10k inserts (with named parameters if it matters), and it took 301s.
After that I made simple insert queries and inserting each time for the same 10k inserts too and it took 303s.
So I would like to know: does prepared statements really give performance benefits? Because my tests didn't show it , or I have to optimize my prepared statements version in order for them to be they faster?
I can give my source code if it's needed.