-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix benchmarks and update results (#61)
- Loading branch information
Showing
2 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
# Benchmark results | ||
|
||
Benchmarks ran on Ubuntu 17.04 64bit, i7 6700k @ 4.0Ghz, 32 GB RAM with Ruby 2.3. | ||
Benchmarks ran on MacBook Pro M1 Pro 2021, 32 GB RAM on Ruby 3.2. | ||
|
||
## permissions.rb | ||
|
||
This benchmark runs `can?` method for the 3 user roles for 20 seconds each, for both CanCan and AccessGranted. | ||
|
||
``` | ||
Warming up -------------------------------------- | ||
ag-admin 158.815k i/100ms | ||
ag-moderator 161.055k i/100ms | ||
ag-user 161.670k i/100ms | ||
cancan-admin 14.865k i/100ms | ||
cancan-moderator 13.181k i/100ms | ||
cancan-user 18.907k i/100ms | ||
ag-admin 358.693k i/100ms | ||
ag-moderator 359.044k i/100ms | ||
ag-user 360.627k i/100ms | ||
cancan-admin 30.797k i/100ms | ||
cancan-moderator 26.825k i/100ms | ||
cancan-user 37.946k i/100ms | ||
Calculating ------------------------------------- | ||
ag-admin 2.141M (± 3.9%) i/s - 10.799M in 5.052573s | ||
ag-moderator 2.180M (± 2.1%) i/s - 10.952M in 5.025727s | ||
ag-user 2.206M (± 0.4%) i/s - 11.155M in 5.056550s | ||
cancan-admin 158.288k (± 2.4%) i/s - 802.710k in 5.074299s | ||
cancan-moderator 142.573k (± 2.1%) i/s - 724.955k in 5.087277s | ||
cancan-user 204.783k (± 2.2%) i/s - 1.040M in 5.080488s | ||
ag-admin 3.640M (± 0.3%) i/s - 18.293M in 5.025691s | ||
ag-moderator 3.642M (± 0.4%) i/s - 18.311M in 5.027575s | ||
ag-user 3.643M (± 0.3%) i/s - 18.392M in 5.049271s | ||
cancan-admin 308.383k (± 0.7%) i/s - 1.571M in 5.093398s | ||
cancan-moderator 270.716k (± 0.8%) i/s - 1.368M in 5.053863s | ||
cancan-user 383.198k (± 0.7%) i/s - 1.935M in 5.050472s | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters