Skip to content

[12.x] Alias Benchmark class #56594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2025
Merged

Conversation

jackbayliss
Copy link
Contributor

@jackbayliss jackbayliss commented Aug 8, 2025

I end up using Benchmark a lot, mainly in Tinker. It would be nice to have an alias:

Before

Psy Shell v0.12.10 (PHP 8.4.6 — cli) by Justin Hileman
> Benchmark::measure(fn() => 1+1);

   Error  Class "Benchmark" not found.
   
  // Need the full path ^...

After

> Benchmark::measure(fn() => 1+1);
= 0.001667

Copy link

github-actions bot commented Aug 8, 2025

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@jackbayliss jackbayliss marked this pull request as ready for review August 8, 2025 14:40
@taylorotwell taylorotwell merged commit ac498ff into laravel:12.x Aug 8, 2025
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants