I
I
ildar-meyker2019-12-01 12:31:24
Laravel
ildar-meyker, 2019-12-01 12:31:24

The page loads about 400ms, while the queries to the database are no more than 10ms. Why?

I removed any partials, database calls, laravel gave everything in 73ms. php artisan optimize improved performance, but not by much. The code itself has not yet had time to change much from the starting box. Freshly installed laravel gives its main one in 99ms. Spins on valet. On hosting, the indicators are somewhere better, somewhere worse. Why such miserable indicators or is it normal?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin B., 2019-12-01
@ildar-meyker

This is normal for a locale. It all depends on the settings, hardware and general optimization and load. Those who saw on the windows they generally have from 600 and above, despite the fact that on the hosting everything is loaded somewhere in 80-100 ms, sometimes even less

S
Sergo96, 2019-12-02
@Sergo96

You can check if opcache is enabled and enable it if not.
https://www.php.net/manual/en/book.opcache.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question