Created
November 5, 2025 02:10
-
-
Save saeedvir/23f280ee1be984440c5e98b5a8895090 to your computer and use it in GitHub Desktop.
Laravel Boot Time Check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Illuminate\Foundation\Application; | |
| require __DIR__ . '/vendor/autoload.php'; | |
| echo "=== Testing Optimized Module System ===\n\n"; | |
| $startTime = microtime(true); | |
| $app = require_once __DIR__ . '/bootstrap/app.php'; | |
| $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class); | |
| $kernel->bootstrap(); | |
| $bootTime = microtime(true) - $startTime; | |
| echo "1. ✓ Application Bootstrap: " . round($bootTime * 1000, 2) . "ms\n\n"; | |
| // Check module providers | |
| $providers = $app->getLoadedProviders(); | |
| echo "\n4. Performance Summary:\n"; | |
| echo " • Boot time: " . round($bootTime * 1000, 2) . "ms\n"; | |
| echo " • Total providers: " . count($providers) . "\n"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment