INSERT INTO timing_results (run_date, operation, dataset, library, iteration, microseconds)
VALUES (?,?,?,?,?,?)
ON CONFLICT(run_date, library, operation, dataset, iteration)
DO UPDATE SET microseconds = excluded.microseconds
WHERE excluded.microseconds < timing_results.microseconds;