Skip to content

Commit

Permalink
🔥 Remove spaces to match script output
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling authored and JacobEvelyn committed Sep 18, 2024
1 parent 925f598 commit 11cbd2a
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,35 +116,34 @@ Benchmarks are run in GitHub Actions, and the tables below are updated with ever

Results using Ruby 3.3.5:

| Method arguments | `alt_memery` (2.1.0) | `dry-core` \* (1.0.1) | `memery` (1.6.0) | `memoist3` (1.0.0) |
|----------------------------|----------------------|-----------------------|------------------|--------------------|
| `()` (none) | 11.86x | 0.45x | 5.23x | 3.72x |
| `(a)` | 6.60x | 0.84x | 5.70x | 13.84x |
| `(a, b)` | 5.02x | 0.72x | 4.15x | 10.53x |
| `(a:)` | 9.83x | 0.83x | 5.94x | 17.24x |
| `(a:, b:)` | 7.66x | 0.70x | 4.66x | 16.24x |
| `(a, b:)` | 7.87x | 0.70x | 4.64x | 13.38x |
| `(a, *args)` | 2.08x | 0.78x | 1.57x | 3.58x |
| `(a:, **kwargs)` | 2.46x | 0.59x | 1.78x | 6.84x |
| `(a, *args, b:, **kwargs)` | 1.67x | 0.67x | 1.12x | 4.10x |
|Method arguments|`alt_memery` (2.1.0)|`dry-core` (1.0.1)|`memery` (1.6.0)|`memoist3` (1.0.0)|
|--|--|--|--|--|
|`()` (none)|11.86x|0.45x|5.23x|3.72x|
|`(a)`|6.60x|0.84x|5.70x|13.84x|
|`(a, b)`|5.02x|0.72x|4.15x|10.53x|
|`(a:)`|9.83x|0.83x|5.94x|17.24x|
|`(a:, b:)`|7.66x|0.70x|4.66x|16.24x|
|`(a, b:)`|7.87x|0.70x|4.64x|13.38x|
|`(a, *args)`|2.08x|0.78x|1.57x|3.58x|
|`(a:, **kwargs)`|2.46x|0.59x|1.78x|6.84x|
|`(a, *args, b:, **kwargs)`|1.67x|0.67x|1.12x|4.10x|

\* `Dry::Core`
[may cause incorrect behavior caused by hash collisions](https://github.com/dry-rb/dry-core/issues/63).

Results using Ruby 2.7.8 (because these gems raise errors in Ruby 3.x):

| Method arguments | `ddmemoize` (1.0.0) | `memoist` (0.16.2) | `memoized` (1.1.1) | `memoizer` (1.0.3) |
|----------------------------|---------------------|--------------------|--------------------|--------------------|
| `()` (none) | 19.77x | 2.41x | 21.53x | 3.08x |
| `(a)` | 16.41x | 11.80x | 17.03x | 10.38x |
| `(a, b)` | 15.09x | 11.17x | 15.21x | 9.96x |
| `(a:)` | 20.91x | 17.19x | 18.48x | 15.66x |
| `(a:, b:)` | 20.48x | 17.30x | 18.74x | 16.18x |
| `(a, b:)` | 19.17x | 16.03x | 16.93x | 15.57x |
| `(a, *args)` | 2.91x | 2.08x | 2.90x | 1.81x |
| `(a:, **kwargs)` | 2.61x | 2.20x | 2.61x | 2.18x |
| `(a, *args, b:, **kwargs)` | 2.13x | 1.79x | 1.99x | 1.71x |

|Method arguments|`ddmemoize` (1.0.0)|`memoist` (0.16.2)|`memoized` (1.1.1)|`memoizer` (1.0.3)|
|--|--|--|--|--|
|`()` (none)|19.77x|2.41x|21.53x|3.08x|
|`(a)`|16.41x|11.80x|17.03x|10.38x|
|`(a, b)`|15.09x|11.17x|15.21x|9.96x|
|`(a:)`|20.91x|17.19x|18.48x|15.66x|
|`(a:, b:)`|20.48x|17.30x|18.74x|16.18x|
|`(a, b:)`|19.17x|16.03x|16.93x|15.57x|
|`(a, *args)`|2.91x|2.08x|2.90x|1.81x|
|`(a:, **kwargs)`|2.61x|2.20x|2.61x|2.18x|
|`(a, *args, b:, **kwargs)`|2.13x|1.79x|1.99x|1.71x|

You can run benchmarks yourself with:

Expand Down

0 comments on commit 11cbd2a

Please sign in to comment.