Skip to content

Instantly share code, notes, and snippets.

@saeedvir
Created November 5, 2025 02:10
Show Gist options
  • Select an option

  • Save saeedvir/23f280ee1be984440c5e98b5a8895090 to your computer and use it in GitHub Desktop.

Select an option

Save saeedvir/23f280ee1be984440c5e98b5a8895090 to your computer and use it in GitHub Desktop.
Laravel Boot Time Check
<?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