You can't get EXPLAIN plans for INSERT with literal values - it should be obvious what the resulting workload will be. If not - its the sum of the carinality for each index divided by the number of records in the database + 1.
Does it make sense to time each insertion command using python?
No.
What are some other ways of doing this?
The DBMS is already doing this. And logging it. Also the logs will differentiate between time taken waiting for other queries to release locks and the time for the DML to run whereas your python code won't.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…