Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Sep 7, 2022
1 parent f5b68ab commit c150136
Showing 1 changed file with 38 additions and 18 deletions.
56 changes: 38 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,24 +217,44 @@ $user->balanceFloat; // 2.37

### Performance Comparison

| Name | 7.2 | 7.3 | 8.1 | 8.2 | 8.3 | 8.4 | 9.0 | 9.1 |
|----------------------------|--------|--------|--------|--------|--------|--------|--------|--------|
| Cart:EagerLoaderPay | 38.8s | 28.6s | 27.9s | 28.5s | 1.27s | 924ms | 987ms | 765ms |
| Cart:Pay | 2.21s | 1.81s | 1.75s | 1.81s | 593ms | 588ms | 426ms | 419ms |
| Cart:PayFree | 2.06s | 1.71s | 1.66s | 1.69s | 534ms | 534ms | 360ms | 348ms |
| Cart:PayOneItemXPieces | 1.03s | 754ms | 726ms | 749ms | 148ms | 158ms | 75.1ms | 78.3ms |
| Gift:Gift | 61.6ms | 59.9ms | 55ms | 58.8ms | 60.1ms | 60.5ms | 66.7ms | 71.2ms |
| Gift:Refund | 167ms | 132ms | 147ms | 150ms | 143ms | 129ms | 141ms | 133ms |
| Solo:Deposit | 31.5ms | 31.6ms | 28.8ms | 29.7ms | 28.2ms | 28.7ms | 28ms | 28.3ms |
| Solo:EagerLoading | 3.1s | 1.18s | 8.16s | 8.08s | 8.99s | 1.28s | 1.25s | 1.1s |
| Solo:ForceWithdraw | 31.3ms | 31.2ms | 29.3ms | 29.6ms | 28.2ms | 28.5ms | 28.4ms | 28.3ms |
| Solo:GetBalance | 20.7ms | 21.5ms | 19.8ms | 20.2ms | 19.5ms | 19.8ms | 21.2ms | 21.3ms |
| Solo:Transfer | 53.1ms | 51.6ms | 47.8ms | 50.5ms | 46.9ms | 48.4ms | 44.1ms | 44.3ms |
| State:InTransaction | 818ms | 693ms | 679ms | 703ms | 628ms | 677ms | 698ms | 700ms |
| State:RefreshInTransaction | 48.7ms | 40.3ms | 39.6ms | 40.8ms | 36.8ms | 39.1ms | 39.7ms | 39.6ms |
| State:TransactionRollback | 38.6ms | 33.8ms | 31.6ms | 32.6ms | 30.9ms | 32.2ms | 31.7ms | 31.9ms |

Table generated using [benchmark](https://github.com/bavix/laravel-wallet-benchmark/). [Pull Request](https://github.com/bavix/laravel-wallet-benchmark/pull/18).
All versions:
| Name | 6.0 | 6.1 | 6.2 | 7.0 | 7.1 | 7.2 | 7.3 | 8.0 | 8.1 | 8.2 | 8.3 | 8.4 | 9.0 | 9.1 | 9.2 | 9.3 |
|----------------------------|--------|--------|---------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|--------|
| Atomic:Blocks | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 743ms | 629ms |
| Cart:EagerLoaderPay | 6.68s | 5.06s | 1m21.9s | 35.1s | 38.6s | 42.1s | 34.7s | 30.6s | 29.3s | 30.9s | 1.18s | 885ms | 730ms | 753ms | 666ms | 729ms |
| Cart:Pay | 1.9s | 1.48s | 4.87s | 2.07s | 2.18s | 2.42s | 2.22s | 1.97s | 1.85s | 1.98s | 573ms | 585ms | 427ms | 446ms | 457ms | 494ms |
| Cart:PayFree | 2.04s | 1.57s | 5.07s | 2.02s | 2.06s | 2.27s | 2.07s | 1.87s | 1.74s | 1.86s | 542ms | 564ms | 367ms | 413ms | 363ms | 408ms |
| Cart:PayOneItemXPieces | 904ms | 696ms | 2.74s | 928ms | 1.04s | 1.12s | 915ms | 816ms | 773ms | 823ms | 166ms | 170ms | 69.2ms | 75.2ms | 69.8ms | 74.8ms |
| Gift:Gift | 96.7ms | 74ms | 96.1ms | 61.1ms | 63.5ms | 71.4ms | 71.6ms | 67.5ms | 64.8ms | 65.7ms | 61.3ms | 66.3ms | 65.3ms | 66.9ms | 60ms | 69.8ms |
| Gift:Refund | 259ms | 198ms | 250ms | 138ms | 149ms | 190ms | 164ms | 175ms | 162ms | 172ms | 146ms | 140ms | 139ms | 141ms | 127ms | 143ms |
| Solo:Deposit | 41.7ms | 31.8ms | 40.6ms | 32ms | 30.7ms | 35.2ms | 37.1ms | 38.8ms | 32.1ms | 33.8ms | 28.7ms | 30.1ms | 29.7ms | 32.2ms | 29ms | 30.2ms |
| Solo:EagerLoading | 1.99s | 1.49s | 2.01s | 1.28s | 1.26s | 3.49s | 1.51s | 9.14s | 8.92s | 9.3s | 9.19s | 1.35s | 1.31s | 1.25s | 1.17s | 1.18s |
| Solo:ForceWithdraw | 42.1ms | 31.3ms | 40.4ms | 31.7ms | 31.5ms | 35.2ms | 37.2ms | 37.1ms | 32.4ms | 33.2ms | 28.3ms | 30.6ms | 29.6ms | 31.7ms | 28.7ms | 30.6ms |
| Solo:GetBalance | 25.7ms | 19.5ms | 25.9ms | 21.9ms | 20.3ms | 23.5ms | 26.1ms | 24.3ms | 21.3ms | 22.4ms | 19.4ms | 21.2ms | 20.7ms | 22.2ms | 19.6ms | 23.2ms |
| Solo:Transfer | 86.3ms | 63.6ms | 80.9ms | 52.8ms | 55ms | 61.2ms | 62.7ms | 60.8ms | 53.9ms | 57ms | 47.6ms | 51.9ms | 46.4ms | 48.5ms | 45.2ms | 48.1ms |
| State:InTransaction | 2.52s | 1.87s | 2.21s | 1.05s | 868ms | 907ms | 924ms | 836ms | 760ms | 811ms | 666ms | 729ms | 733ms | 782ms | 719ms | 706ms |
| State:RefreshInTransaction | - | - | - | - | 47.2ms | 52.8ms | 52.8ms | 49.9ms | 47.3ms | 47.7ms | 39.8ms | 44ms | 43.3ms | 45.7ms | 42.3ms | 47.6ms |
| State:TransactionRollback | - | - | - | - | 38.1ms | 42.8ms | 41.2ms | 39.9ms | 36.6ms | 37.2ms | 31.5ms | 35ms | 33.8ms | 34.9ms | 31ms | 36.4ms |

Major compare:
| Name | 6.x | 7.x | 8.x | 9.x |
|----------------------------|--------|--------|--------|--------|
| Cart:EagerLoaderPay | 31.2s | 37.6s | 18.6s | 719ms |
| Cart:Pay | 2.75s | 2.22s | 1.39s | 456ms |
| Cart:PayFree | 2.9s | 2.1s | 1.31s | 388ms |
| Cart:PayOneItemXPieces | 1.45s | 1s | 550ms | 72.2ms |
| Gift:Gift | 88.9ms | 66.9ms | 65.1ms | 65.5ms |
| Gift:Refund | 236ms | 160ms | 159ms | 138ms |
| Solo:Deposit | 38ms | 33.8ms | 32.7ms | 30.3ms |
| Solo:EagerLoading | 1.83s | 1.89s | 7.58s | 1.23s |
| Solo:ForceWithdraw | 37.9ms | 33.9ms | 32.3ms | 30.2ms |
| Solo:GetBalance | 23.7ms | 22.9ms | 21.7ms | 21.4ms |
| Solo:Transfer | 76.9ms | 57.9ms | 54.3ms | 47.1ms |
| State:InTransaction | 2.2s | 937ms | 760ms | 735ms |
| State:RefreshInTransaction | - | - | 45.8ms | 44.7ms |
| State:TransactionRollback | - | - | 36ms | 34ms |

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

---
Supported by
Expand Down

0 comments on commit c150136

Please sign in to comment.