Test cross-file benchmark

This commit is contained in:
Lim Chee Aun 2024-09-09 20:16:17 +08:00
parent 8839e89d2b
commit 8618deec29
3 changed files with 5 additions and 3 deletions

View file

@ -327,6 +327,7 @@ function App() {
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [uiState, setUIState] = useState('loading');
__BENCHMARK.start('app-init');
__BENCHMARK.start('time-to-home');
useLingui();
useEffect(() => {

6
src/locales/en.po generated
View file

@ -54,7 +54,7 @@ msgstr ""
#: src/components/nav-menu.jsx:193
#: src/components/shortcuts-settings.jsx:137
#: src/pages/following.jsx:20
#: src/pages/following.jsx:133
#: src/pages/following.jsx:134
msgid "Following"
msgstr ""
@ -2889,11 +2889,11 @@ msgstr ""
msgid "No hashtags followed yet."
msgstr ""
#: src/pages/following.jsx:135
#: src/pages/following.jsx:136
msgid "Nothing to see here."
msgstr ""
#: src/pages/following.jsx:136
#: src/pages/following.jsx:137
#: src/pages/list.jsx:108
msgid "Unable to load posts."
msgstr ""

View file

@ -66,6 +66,7 @@ function Following({ title, path, id, ...props }) {
});
}
__BENCHMARK.end('fetch-home-first');
__BENCHMARK.end('time-to-home');
return {
...results,
value,