diff --git a/src/flashfetch.c b/src/flashfetch.c index 313de8977..f75f507c7 100644 --- a/src/flashfetch.c +++ b/src/flashfetch.c @@ -10,9 +10,6 @@ int main(int argc, char** argv) //Modify instance.config here - ffLoadLogo(&instance); //ffLoadLogoSet(&instance, "my custom logo"); - ffStrbufSet(&instance.config.color, &instance.config.logoColors[0]); //Use the primary color of the logo as key color - //Multithreading --> better performance ffStartDetectionThreads(&instance); diff --git a/tests/performance.c b/tests/performance.c index 810a08d9b..c526a2106 100644 --- a/tests/performance.c +++ b/tests/performance.c @@ -25,12 +25,6 @@ int main(int argc, char** argv) ffInitInstance(&instance); ) - FASTFETCH_TEST_PERFORMANCE( - puts("Configuration"); - ffLoadLogo(&instance); - ) - - ffStrbufSet(&instance.config.color, &instance.config.logoColors[0]); instance.config.showErrors = true; instance.config.recache = argc == 1; instance.config.cacheSave = false; @@ -41,6 +35,11 @@ int main(int argc, char** argv) ffStartDetectionThreads(&instance); ) + FASTFETCH_TEST_PERFORMANCE( + puts("Starting"); + ffStart(&instance); + ) + FASTFETCH_TEST_PERFORMANCE(ffPrintTitle(&instance)) FASTFETCH_TEST_PERFORMANCE(ffPrintSeparator(&instance)) FASTFETCH_TEST_PERFORMANCE(ffPrintOS(&instance)) @@ -74,5 +73,10 @@ int main(int argc, char** argv) FASTFETCH_TEST_PERFORMANCE(ffPrintBreak(&instance)) FASTFETCH_TEST_PERFORMANCE(ffPrintColors(&instance)) + FASTFETCH_TEST_PERFORMANCE( + puts("Finishing"); + ffFinish(&instance); + ) + return 0; }