Skip to content

Commit fa486a8

Browse files
authored
Increase iterations of flaky benchmarks (#2458)
* fix: Increase iterations of flaky benchmarks * Increase iterations of PDOBench * Rerun benchmarks on changes to `tests/Benchmarks/**/*` * Rerun benchmarks on changes to `benchmark`
1 parent 4b6bccc commit fa486a8

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.gitlab/benchmarks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ benchmarks-tracer:
5656
- ext/**/*
5757
- src/**/*
5858
- zend_abstract_interface/**/*
59+
- tests/Benchmarks/**/*
60+
- benchmark/*
5961
compare_to: "master"
6062
when: on_success
6163
- when: manual

tests/Benchmarks/API/ContextPropagationBench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function benchExtractTraceContext64Bit()
5656

5757
/**
5858
* @Revs(1)
59-
* @Iterations(10)
59+
* @Iterations(15)
6060
* @OutputTimeUnit("microseconds")
6161
* @RetryThreshold(10.0)
6262
* @BeforeMethods("resetContext")

tests/Benchmarks/Integrations/PDOBench.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class PDOBench
2222
/**
2323
* @BeforeMethods({"disablePDOIntegration"})
2424
* @Revs(100)
25-
* @Iterations(5)
25+
* @Iterations(15)
2626
* @OutputTimeUnit("microseconds")
2727
* @RetryThreshold(10.0)
2828
*/
@@ -34,7 +34,7 @@ public function benchPDOBaseline()
3434
/**
3535
* @BeforeMethods({"enablePDOIntegration"})
3636
* @Revs(100)
37-
* @Iterations(5)
37+
* @Iterations(15)
3838
* @OutputTimeUnit("microseconds")
3939
* @RetryThreshold(10.0)
4040
*/
@@ -46,7 +46,7 @@ public function benchPDOOverhead()
4646
/**
4747
* @BeforeMethods({"enablePDOIntegrationWithDBM"})
4848
* @Revs(100)
49-
* @Iterations(5)
49+
* @Iterations(15)
5050
* @OutputTimeUnit("microseconds")
5151
* @RetryThreshold(10.0)
5252
*/

tests/Benchmarks/Integrations/PHPRedisBench.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class PHPRedisBench
1515
* @BeforeMethods({"disablePHPRedisIntegration"})
1616
* @AfterMethods({"closeConnection"})
1717
* @Revs(100)
18-
* @Iterations(5)
18+
* @Iterations(15)
1919
* @OutputTimeUnit("microseconds")
2020
* @RetryThreshold(10.0)
2121
*/
@@ -28,7 +28,7 @@ public function benchRedisBaseline()
2828
* @BeforeMethods({"enablePHPRedisIntegration"})
2929
* @AfterMethods({"closeConnection"})
3030
* @Revs(100)
31-
* @Iterations(5)
31+
* @Iterations(15)
3232
* @OutputTimeUnit("microseconds")
3333
* @RetryThreshold(10.0)
3434
*/

0 commit comments

Comments
 (0)