Laravel is too slow : <p>I just set this page in the routing file <code>web.php</code>:</p>

<pre><code>Route::get("/speedtest","SpeedController@speed_test");
</code></pre>

<p>Here is the speed test function:</p>

<pre><code>public function speed_test(){
    return view("speedtest");
}
</code></pre>

<p>That returns <code>speedtest.blade.php</code> which contains just a <code>hello world</code>.</p>

<p>It takes between 2.5 s and 3.5 to load this page.</p>

<p>Other pages that use a middleware and some queries needs between 3.5 and 6.5 seconds. The database is almost empty and the queries returns just 3 or 4 items (something like <code>Files::where(user_id, Auth::user()-&gt;id)-&gt;get()</code> ).</p>

<p>So everything is slow, even empty sites. There is definitely something wrong.</p>

<p>The site is alone in a server with 4 GB RAM, SSD and 1 Gbit connection</p>

<p>Any help?</p>
