Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Babichev <[email protected]>
  • Loading branch information
rez1dent3 authored Feb 4, 2024
1 parent 1f8bd49 commit addf969
Showing 1 changed file with 20 additions and 40 deletions.
60 changes: 20 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,46 +217,26 @@ $user->balanceFloat; // 2.37
### Performance Comparison

All versions:
| Name | 7.3 | 8.4 | 9.2 | 9.3 | 9.4 | 9.5 | 9.6 | 10.0 |
|----------------------------|--------|--------|--------|--------|--------|--------|--------|--------|
| Atomic:Blocks | - | - | 860ms | 561ms | 697ms | 722ms | 775ms | 586ms |
| Cart:EagerLoaderPay | 26.9s | 881ms | 818ms | 674ms | 829ms | 800ms | 768ms | 627ms |
| Cart:Pay | 1.67s | 651ms | 534ms | 426ms | 529ms | 492ms | 543ms | 355ms |
| Cart:PayFree | 1.6s | 540ms | 448ms | 346ms | 435ms | 455ms | 487ms | 385ms |
| Cart:PayOneItemXPieces | 712ms | 156ms | 89ms | 79.9ms | 80.9ms | 99.4ms | 87.5ms | 60.6ms |
| Gift:Gift | 61ms | 71.5ms | 85.7ms | 70.5ms | 75.1ms | 82.8ms | 84.4ms | 66.2ms |
| Gift:Refund | 126ms | 150ms | 166ms | 134ms | 153ms | 161ms | 160ms | 127ms |
| Solo:Deposit | 37.1ms | 38.9ms | 47.5ms | 39ms | 42.2ms | 46.8ms | 41.1ms | 20.3ms |
| Solo:EagerLoading | 1.11s | 1.45s | 1.43s | 1.12s | 1.42s | 1.47s | 1.51s | 1.19s |
| Solo:ForceWithdraw | 36.4ms | 39.1ms | 45.9ms | 39.2ms | 41.6ms | 46ms | 42.1ms | 20.5ms |
| Solo:GetBalance | 27.7ms | 30.6ms | 38.1ms | 32.4ms | 32ms | 37.8ms | 32ms | 8.44ms |
| Solo:Transfer | 55.8ms | 58.4ms | 67ms | 53.1ms | 57.3ms | 63.8ms | 60.2ms | 35.5ms |
| Solo:Withdraw | 41.5ms | 44.5ms | 53.1ms | 44.1ms | 45.9ms | 51.7ms | 47.7ms | 25.9ms |
| State:InTransaction | 670ms | 721ms | 869ms | 622ms | 829ms | 854ms | 598ms | 504ms |
| State:RefreshInTransaction | 51.9ms | 55.8ms | 63ms | 53.8ms | 63.5ms | 63.6ms | 60.2ms | 41.3ms |
| State:TransactionRollback | 40.2ms | 41.8ms | 48.6ms | 41.3ms | 43.4ms | 48.7ms | 45.1ms | 24.1ms |

Major compare:
| Name | 7.x | 8.x | 9.x | 10.x |
|----------------------------|--------|--------|--------|--------|
| Atomic:Blocks | - | - | 704ms | 586ms |
| Cart:EagerLoaderPay | 26.9s | 881ms | 780ms | 627ms |
| Cart:Pay | 1.67s | 651ms | 492ms | 355ms |
| Cart:PayFree | 1.6s | 540ms | 425ms | 385ms |
| Cart:PayOneItemXPieces | 712ms | 156ms | 81.9ms | 60.6ms |
| Gift:Gift | 61ms | 71.5ms | 74.6ms | 66.2ms |
| Gift:Refund | 126ms | 150ms | 152ms | 127ms |
| Solo:Deposit | 37.1ms | 38.9ms | 41ms | 20.3ms |
| Solo:EagerLoading | 1.11s | 1.45s | 1.38s | 1.19s |
| Solo:ForceWithdraw | 36.4ms | 39.1ms | 41.4ms | 20.5ms |
| Solo:GetBalance | 27.7ms | 30.6ms | 32.1ms | 8.44ms |
| Solo:Transfer | 55.8ms | 58.4ms | 57.1ms | 35.5ms |
| Solo:Withdraw | 41.5ms | 44.5ms | 46.1ms | 25.9ms |
| State:InTransaction | 670ms | 721ms | 754ms | 504ms |
| State:RefreshInTransaction | 51.9ms | 55.8ms | 60.9ms | 41.3ms |
| State:TransactionRollback | 40.2ms | 41.8ms | 44.1ms | 24.1ms |

Table generated using [benchmark](https://github.com/bavix/laravel-wallet-benchmark/). [Pull Request](https://github.com/bavix/laravel-wallet-benchmark/pull/40).
| Name | 7.3 | 8.4 | 9.6 | 10.1 | 11.0 |
|----------------------------|--------|--------|--------|--------|--------|
| Atomic:Blocks | - | - | 484ms | 493ms | 493ms |
| Cart:EagerLoaderPay | 22s | 679ms | 493ms | 530ms | 652ms |
| Cart:Pay | 1.36s | 472ms | 288ms | 298ms | 336ms |
| Cart:PayFree | 1.3s | 415ms | 281ms | 291ms | 287ms |
| Cart:PayOneItemXPieces | 565ms | 118ms | 59.1ms | 64.6ms | 66.2ms |
| Gift:Gift | 44.8ms | 53.5ms | 54.3ms | 58.4ms | 64.3ms |
| Gift:Refund | 106ms | 112ms | 108ms | 111ms | 139ms |
| Solo:Deposit | 27.4ms | 31.8ms | 31ms | 33.3ms | 30.1ms |
| Solo:EagerLoading | 904ms | 1.09s | 876ms | 927ms | 1.02s |
| Solo:ForceWithdraw | 27.6ms | 31.8ms | 30.7ms | 32.9ms | 30ms |
| Solo:GetBalance | 20.8ms | 24ms | 23.7ms | 23.4ms | 20ms |
| Solo:Transfer | 39.4ms | 45.7ms | 42ms | 44.9ms | 46.6ms |
| Solo:Withdraw | 31.1ms | 36.3ms | 34.9ms | 37.3ms | 37.8ms |
| State:InTransaction | 570ms | 566ms | 419ms | 425ms | 427ms |
| State:RefreshInTransaction | 32.3ms | 41.2ms | 41.2ms | 45.6ms | 47.2ms |
| State:TransactionRollback | 29.7ms | 34.1ms | 32.9ms | 37.2ms | 36.9ms |

Table generated using [benchmark](https://github.com/bavix/laravel-wallet-benchmark/). [Pull Request](https://github.com/bavix/laravel-wallet-benchmark/pull/51).

---
Supported by
Expand Down

0 comments on commit addf969

Please sign in to comment.