I need to do 3 million inserts into a database (mysql). PHP seems slow when it comes to embedding. I just need to check if C is faster when executing codes.
The bottleneck is probably the database, regardless of the programming language.
You should study batch inserts and disable indexes during insertion to speed up the process.
C is really faster, but I also think the database is a big bottleneck