myql performance : extremely slow inserts on a faster box
Do not insert one row at a time; batch them.  That is, have 1000 rows being inserted by each INSERT statement.

That will help both servers

To find out why there is a difference, ...  Compare the CREATE TABLE.  Compare SHOW VARIABLES LIKE 'innodb%';.  If those don't point out anything, compare all the VARIABLES.  The likely suspect is innodb_flush_log_at_trx_commit.  Note:  Don't simply look at my.cnf; some defaults are different between versions.