From e4474d2d4d774dd89d99b7d9a9cadc0c7a9b27f9 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 16 Sep 2024 14:16:17 +0800 Subject: [PATCH] More accurate app-init benchmark --- src/app.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.jsx b/src/app.jsx index 8e455185..7fc8f604 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -416,12 +416,13 @@ function App() { } finally { setIsLoggedIn(true); setUIState('default'); + __BENCHMARK.end('app-init'); } })(); } else { setUIState('default'); + __BENCHMARK.end('app-init'); } - __BENCHMARK.end('app-init'); } // Cleanup