box-project / box

📦🚀 Fast, zero config application bundler with PHARs.
https://box-project.github.io/box
MIT License
1.14k stars 100 forks source link

test(perf): Remove noise from AppRequirementFactoryBench #1325

Closed theofidry closed 8 months ago

theofidry commented 8 months ago

Creating the ComposerJson and ComposerLock files are not exactly free given that they have an IO operation. Hence, it makes more sense to move their instantiation to the setup method to reduce the noise from the actual benchmark.