Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Benchmark Laravel Package

dragon-code/benchmark

Benchmark is a small PHP dev tool for quickly comparing execution speed of different code paths. Use the bench() helper or Benchmark class, pass callbacks (named or not), and print results to the console for easy side-by-side timing.

View on GitHub
Deep Wiki
Context7
4.5.1

Changed

  • Add number_format function import to ProgressBarView by @andrey-helldar in #119
  • Refactor TableView methods for clarity and reuse by @andrey-helldar in #120
  • Refactor newLine method by extracting buildLine helper by @andrey-helldar in #118
  • Remove unused Benchmark import from README by @andrey-helldar in #117
4.5.0

Added

Changed

4.4.2

Fixed

  • Add SilentProgressBar implementation and integrate progress bar toggle in ViewService by @andrey-helldar in #104
4.4.0

Added

  • Add disableProgressBar method to suppress progress bar display in console by @andrey-helldar in #100
4.3.0

Added

  • Added new assertions for deviation: toBeDeviationTime and toBeDeviationMemory methods by @andrey-helldar in #96
  • Handle cases with no comparisons: throw NoComparisonsException for toAssert and log info message for toConsole. by @andrey-helldar in #97

Changed

  • Add Xdebug-specific testing scripts: test:coverage and test:profile. by @andrey-helldar in #98
  • Revert "Refactor TableView to improve separator handling with distinct header and footer methods by @andrey-helldar in #99
4.1.1

Fixed

  • [4.x] Fixed handling of comparison of mixed parameter names by @andrey-helldar in #90
4.1.0

Added

  • Add type hints in Benchmark methods by @roxblnfk in #88

Changed

4.0.0

Added

  • [4.x] Add ResultData and MetricData DTO classes by @andrey-helldar in #48
  • [4.x] Add afterEach method by @andrey-helldar in #41
  • [4.x] Add before and after callbacks to Benchmark with comprehensive tests by @andrey-helldar in #51
  • [4.x] Add expectOutputToMatchSnapshot helper and enhance toConsole testing by @andrey-helldar in #60
  • [4.x] Add assertions methods by @andrey-helldar in #52
  • [4.x] Add type declaration for $stream property in View class by @andrey-helldar in #73
  • [4.x] Console output added by @andrey-helldar in #56

Changed

  • Add preview-updater.yml configuration file by @andrey-helldar in #30
  • The year in the LICENSE file has been updated by @github-actions[bot] in #26
  • Update .gitignore to exclude .output.txt file by @andrey-helldar in #59
  • Update benchmark image in README.md by @andrey-helldar in #27
  • Update preview by @github-actions[bot] in #28
  • Update repository banner image by @github-actions[bot] in #66
  • Update repository banner image by @github-actions[bot] in #29
  • [4.x] Add snapshots for RoundTest with multiple data sets for improved test validation by @andrey-helldar in #69
  • [4.x] Exclude playground.php by @andrey-helldar in #55
  • [4.x] Fix alignment in UPGRADING.md after recent method changes by @andrey-helldar in #44
  • [4.x] Refactor project architecture and rename core classes by @andrey-helldar in #54
  • [4.x] Refactor tests and improve benchmark functionality by @andrey-helldar in #58
  • [4.x] Remove Symfony by @andrey-helldar in #49
  • [4.x] Remove Transformer contract and update upgrade guide by @andrey-helldar in #63
  • [4.x] Remove redundant $streamName property and default to php://stderr in View classes by @andrey-helldar in #77
  • [4.x] Remove redundant examples from README benchmarking section by @andrey-helldar in #45
  • [4.x] Remove unused plugins from composer configuration by @andrey-helldar in #82
  • [4.x] Rename assert method to toAssert in Benchmark and update all related tests by @andrey-helldar in #78
  • [4.x] Rename ram to memory for clarity and consistency by @andrey-helldar in #62
  • [4.x] Rename start method to make by @andrey-helldar in #43
  • [4.x] Replace PHPUnit with Pest by @andrey-helldar in #46
  • [4.x] Replace prepare method with beforeEach by @andrey-helldar in #39
  • [4.x] Replace phpunit.yml with tests.yml by @andrey-helldar in #47
  • [4.x] Simplify MeasurementErrorService by removing redundant count wrapper method by @andrey-helldar in #76
  • [4.x] Simplify memory unit calculation in MemoryService by removing unnecessary condition by @andrey-helldar in #75
  • [4.x] Simplify stream handling in View classes and update snapshots by @andrey-helldar in #61
  • [4.x] Simplify workflow by reusing shared code style action configuration by @andrey-helldar in #80
  • [4.x] Update README by @andrey-helldar in #79
  • [4.x] Update .gitattributes by @andrey-helldar in #85
  • [4.x] Update .gitignore by @andrey-helldar in #84
  • [4.x] Update UPGRADING.md with detailed migration instructions by @andrey-helldar in #86
  • [4.x] Update fluent methods to return static instead of self for better extensibility by @andrey-helldar in #74
  • [4.x] Update time and memory thresholds, rename services for consistency by @andrey-helldar in #64

Removed

Fixed

  • [4.x] Fix compare method callback handling and enforce stricter PHPUnit configuration by @andrey-helldar in #68
  • [4.x] Fix callable type for beforeEach and afterEach methods by @andrey-helldar in #42
  • [4.x] Fix coverage by @andrey-helldar in #71
  • [4.x] Update exception messages in failure tests for improved clarity by @andrey-helldar in #57
  • [4.x] Use $streamName property in stream() method to configure stream resource by @andrey-helldar in #72
3.1.0

Added

Changed

3.0.0

Added

Removed

v2.4.0

What's Changed

Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.3.0...v2.4.0

v2.0.0

Changed

  • Project was renamed from dragon-code/runtime-comparison to dragon-code/benchmark

Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v1.5.1...v2.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport