Skip to content

Commit 7197714

Browse files
committed
change SerializeBench
1 parent 7f6e732 commit 7197714

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmarks/SerializeBench.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function setupObject(): void
8383
Revs(500),
8484
Iterations(5),
8585
BeforeMethods([ 'setupObjectCreation']),
86-
Assert('mode(variant.time.avg) < 140 microseconds +/- 5%')
86+
Assert('mode(variant.time.avg) < 120 microseconds +/- 5%')
8787
]
8888
public function benchObjectCreation(): void
8989
{
@@ -94,7 +94,7 @@ public function benchObjectCreation(): void
9494
Revs(5000),
9595
Iterations(5),
9696
BeforeMethods([ 'setupObjectCreation']),
97-
Assert('mode(variant.time.avg) < 350 microseconds +/- 5%')
97+
Assert('mode(variant.time.avg) < 300 microseconds +/- 5%')
9898
]
9999
public function benchObjectCreationWithoutCache(): void
100100
{
@@ -106,7 +106,7 @@ public function benchObjectCreationWithoutCache(): void
106106
Revs(500),
107107
Iterations(5),
108108
BeforeMethods(['setupObject']),
109-
Assert('mode(variant.time.avg) < 80 microseconds +/- 5%')
109+
Assert('mode(variant.time.avg) < 65 microseconds +/- 5%')
110110
]
111111
public function benchObjectToArray(): void
112112
{
@@ -117,7 +117,7 @@ public function benchObjectToArray(): void
117117
Revs(5000),
118118
Iterations(5),
119119
BeforeMethods(['setupObject']),
120-
Assert('mode(variant.time.avg) < 270 microseconds +/- 5%')
120+
Assert('mode(variant.time.avg) < 230 microseconds +/- 5%')
121121
]
122122
public function benchObjectToArrayWithoutCache(): void
123123
{

0 commit comments

Comments
 (0)