dragon-code/benchmark
Lightweight PHP benchmarking helper to compare execution speed of multiple callbacks. Run named tests, repeat iterations, trim outliers for cleaner averages, and print results (min/max/avg/total + memory) to the console. Includes bench() helper and Benchmark class.
snapshots method by @andrey-helldar in #125number_format function import to ProgressBarView by @andrey-helldar in #119TableView methods for clarity and reuse by @andrey-helldar in #120newLine method by extracting buildLine helper by @andrey-helldar in #118bench helper function by @andrey-helldar in #115EnabledProgressBar by @andrey-helldar in #114AssertService by @andrey-helldar in #106DeviationService by @andrey-helldar in #108LineView by @andrey-helldar in #110ProgressBarView by @andrey-helldar in #112writeLine method in View by @andrey-helldar in #111disableProgressBar method to suppress progress bar display in console by @andrey-helldar in #100toBeDeviationTime and toBeDeviationMemory methods by @andrey-helldar in #96NoComparisonsException for toAssert and log info message for toConsole. by @andrey-helldar in #97test:coverage and test:profile. by @andrey-helldar in #98TableView to improve separator handling with distinct header and footer methods by @andrey-helldar in #99ResultData and MetricData DTO classes by @andrey-helldar in #48afterEach method by @andrey-helldar in #41before and after callbacks to Benchmark with comprehensive tests by @andrey-helldar in #51expectOutputToMatchSnapshot helper and enhance toConsole testing by @andrey-helldar in #60$stream property in View class by @andrey-helldar in #73.gitignore to exclude .output.txt file by @andrey-helldar in #59RoundTest with multiple data sets for improved test validation by @andrey-helldar in #69playground.php by @andrey-helldar in #55Transformer contract and update upgrade guide by @andrey-helldar in #63$streamName property and default to php://stderr in View classes by @andrey-helldar in #77assert method to toAssert in Benchmark and update all related tests by @andrey-helldar in #78ram to memory for clarity and consistency by @andrey-helldar in #62start method to make by @andrey-helldar in #43prepare method with beforeEach by @andrey-helldar in #39MeasurementErrorService by removing redundant count wrapper method by @andrey-helldar in #76MemoryService by removing unnecessary condition by @andrey-helldar in #75View classes and update snapshots by @andrey-helldar in #61.gitattributes by @andrey-helldar in #85.gitignore by @andrey-helldar in #84UPGRADING.md with detailed migration instructions by @andrey-helldar in #86static instead of self for better extensibility by @andrey-helldar in #74ArrayService class by @andrey-helldar in #65dragon-code/support dependency from composer.json by @andrey-helldar in #67compare method callback handling and enforce stricter PHPUnit configuration by @andrey-helldar in #68beforeEach and afterEach methods by @andrey-helldar in #42$streamName property in stream() method to configure stream resource by @andrey-helldar in #72Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.5.1...2.6.0
Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.5.0...v2.5.1
Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.4.0...v2.5.0
Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.3.0...v2.4.0
prepare method by @andrey-helldar in https://github.com/TheDragonCode/benchmark/pull/7Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.2.1...v2.3.0
Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.1.1...v2.2.0
Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.1.0...v2.1.1
Full Changelog: https://github.com/TheDragonCode/benchmark/compare/v2.0.0...v2.1.0
dragon-code/runtime-comparison to dragon-code/benchmarkFull Changelog: https://github.com/TheDragonCode/benchmark/compare/v1.5.1...v2.0.0
How can I help you explore Laravel packages today?