Skip to content

Commit

Permalink
Added benchmark result
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaliskan committed Jan 3, 2024
1 parent 6501130 commit ee0489d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/BenchmarkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function generateTransferPerSecondTable(): void
foreach (ServerEnum::cases() as $serverEnum) {
$data[$serverEnum->name][] = $serverEnum->getTitle();
foreach (EndpointEnum::cases() as $endpointEnum) {
$data[$serverEnum->name][] = $this->getBenchmarkData($serverEnum, $endpointEnum)->get('bytes_transfer_per_sec') / 1024;
$data[$serverEnum->name][] = $this->getBenchmarkData($serverEnum, $endpointEnum)->get('bytes_transfer_per_sec') / 1024 / 1024;
}
}

Expand Down
8 changes: 4 additions & 4 deletions storage/table/transfer-per-second.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Server,"Health Check",Static,"Http Request"
OpenSwoole,1934.7021289062,2058.8263867188,1768.9151074219
Swoole,2159.3520605469,2287.7206835937,1912.2625683594
RoadRunner,976.80772460937,1506.1560253906,1491.6245117188
FrankenPHP,1728.045078125,2323.3395507813,2004.8254296875
OpenSwoole,1.88935754776,2.01057264328,1.7274561595917
Swoole,2.1087422466278,2.234102230072,1.8674439144135
RoadRunner,0.95391379356384,1.4708554935455,1.4566645622253
FrankenPHP,1.6875440216064,2.2688862800598,1.9578373336792

0 comments on commit ee0489d

Please sign in to comment.