From db2941cbb0bd0220fcf0f2f9f4dcc07df07137f1 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Wed, 14 Mar 2018 16:39:05 -0400 Subject: [PATCH] Measure duration of migration --- js/database.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/database.js b/js/database.js index e94f6c240..a7335abd3 100644 --- a/js/database.js +++ b/js/database.js @@ -241,9 +241,14 @@ console.log('migration 17'); console.log('Start migration to database version 17'); + const start = Date.now(); await Migrations.V17.run(transaction); + const duration = Date.now() - start; - console.log('Complete migration to database version 17'); + console.log( + 'Complete migration to database version 17.', + `Duration: ${duration}ms` + ); next(); }, },