Skip to content

Commit

Permalink
Increase iterations of flaky benchmarks (#2458)
Browse files Browse the repository at this point in the history
* fix: Increase iterations of flaky benchmarks

* Increase iterations of PDOBench

* Rerun benchmarks on changes to `tests/Benchmarks/**/*`

* Rerun benchmarks on changes to `benchmark`
  • Loading branch information
PROFeNoM authored Jan 11, 2024
1 parent 4b6bccc commit fa486a8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitlab/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ benchmarks-tracer:
- ext/**/*
- src/**/*
- zend_abstract_interface/**/*
- tests/Benchmarks/**/*
- benchmark/*
compare_to: "master"
when: on_success
- when: manual
Expand Down
2 changes: 1 addition & 1 deletion tests/Benchmarks/API/ContextPropagationBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function benchExtractTraceContext64Bit()

/**
* @Revs(1)
* @Iterations(10)
* @Iterations(15)
* @OutputTimeUnit("microseconds")
* @RetryThreshold(10.0)
* @BeforeMethods("resetContext")
Expand Down
6 changes: 3 additions & 3 deletions tests/Benchmarks/Integrations/PDOBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PDOBench
/**
* @BeforeMethods({"disablePDOIntegration"})
* @Revs(100)
* @Iterations(5)
* @Iterations(15)
* @OutputTimeUnit("microseconds")
* @RetryThreshold(10.0)
*/
Expand All @@ -34,7 +34,7 @@ public function benchPDOBaseline()
/**
* @BeforeMethods({"enablePDOIntegration"})
* @Revs(100)
* @Iterations(5)
* @Iterations(15)
* @OutputTimeUnit("microseconds")
* @RetryThreshold(10.0)
*/
Expand All @@ -46,7 +46,7 @@ public function benchPDOOverhead()
/**
* @BeforeMethods({"enablePDOIntegrationWithDBM"})
* @Revs(100)
* @Iterations(5)
* @Iterations(15)
* @OutputTimeUnit("microseconds")
* @RetryThreshold(10.0)
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/Benchmarks/Integrations/PHPRedisBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PHPRedisBench
* @BeforeMethods({"disablePHPRedisIntegration"})
* @AfterMethods({"closeConnection"})
* @Revs(100)
* @Iterations(5)
* @Iterations(15)
* @OutputTimeUnit("microseconds")
* @RetryThreshold(10.0)
*/
Expand All @@ -28,7 +28,7 @@ public function benchRedisBaseline()
* @BeforeMethods({"enablePHPRedisIntegration"})
* @AfterMethods({"closeConnection"})
* @Revs(100)
* @Iterations(5)
* @Iterations(15)
* @OutputTimeUnit("microseconds")
* @RetryThreshold(10.0)
*/
Expand Down

0 comments on commit fa486a8

Please sign in to comment.