-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add benchmark for composer telemetry parsing
- Loading branch information
Showing
7 changed files
with
5,396 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Benchmarks\API; | ||
|
||
class ComposerTelemetryBench | ||
{ | ||
/** | ||
* @Revs(1) | ||
* @Iterations(10) | ||
* @OutputTimeUnit("microseconds") | ||
* @RetryThreshold(10.0) | ||
*/ | ||
public function benchTelemetryParsing() | ||
{ | ||
dd_trace_internal_fn( | ||
"detect_composer_installed_json", | ||
__DIR__ . "/../support/ComposerTelemetryBench/vendor/autoload.php" | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!vendor |
3 changes: 3 additions & 0 deletions
3
tests/Benchmarks/support/ComposerTelemetryBench/vendor/autoload.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
return \time(); // Do not do _nothing_ |
Oops, something went wrong.