Support the ongoing development of Laravel.io →
Configuration Cache Architecture

I threw together this quick-n-dirty script for my own use, but decided to package it up to share.

This package has given me some major insights into improving the performance of my Laravel apps:

  • Redis performance isn't much different than MySQL performance; don't bother caching simple queries in Redis.
  • Redis and Eloquent are four orders of magnitude (4k/second vs 10M/second) slower than local variables/$GLOBALS/$_SESSION. I knew there was a difference, but wow.
  • DB and Eloquent are an order of magnitude slower than a simple mysqli query.
  • Laravel's Session is 2 orders of magnitude slower than $_SESSION.
Last updated 3 years ago.
0

Holy ****!

Nice insights and thx for sharing.

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

claar claar Joined 18 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.