Improving a Laravel-based app
Marko Lekic, from interactive design studio fleka.me, improved his app performance by 93% on wall-time, and 77% on memory, with the help of Blackfire.io.
During his participation to the #FireUpMyMac contest, Marko Lekić had a chance to find a massive improvement in his usage of Laravel for one of the apps he built. Working at fleka.me, “Interactive design studio specialized in web and mobile”, the app he developed enables you to use your mobile phone when at a restaurant, and find the most appropriate wine in the menu for the dish you’ll order.
Pairing a dish to a wine requiring to run complex formulae, they rely on a cron job executed each night. They managed to improve this cron job very simply and efficiently when they found the root cause of slowness with Blackfire.io:
Before the fix:
Wall Time 57.6s
CPU Time 49.4s
I/O Time 8.23s
Memory 100MB
After the fix:
Wall Time 3.42s (-93%)
CPU Time 3.02s (-94%)
I/O Time 407ms (-95%)
Memory 23.1MB (-77%)
Read the full article here.