In this page we show and/or compare different aspects of the Pagy gem:
You can use this page to inspect the commented source, and make decision about using one method or another, based on Benchmarks and Memory allocation.
This page displays recorded data as static HTML, hence the pagination links don't work.
In order to enable all the functionalities and run Benchmarks and Memory Profiles on your hardware, please install the app.
pagy_link_proc / rails-link_to |
---|
Warming up -------------------------------------- pagy_link_proc 1.644k i/100ms rails-link_to 77.000 i/100ms Calculating ------------------------------------- pagy_link_proc 16.687k (± 3.4%) i/s - 83.844k in 5.068975s rails-link_to 773.080 (± 2.3%) i/s - 3.850k in 5.000811s with 99.0% confidence Comparison: pagy_link_proc: 16687.2 i/s rails-link_to: 773.1 i/s - 21.58x (± 0.89) slower with 99.0% confidence |
pagy_link_proc / rails-link_to |
---|
Memory ----------------------------------- pagy_link_proc 7.73 Kb rails-link_to 132.77 Kb - 17.18x more Objects ----------------------------------- pagy_link_proc 116 rails-link_to 1,462 - 12.6x more |
pagy_t / rails-t |
---|
Warming up -------------------------------------- pagy_t 27.715k i/100ms rails-t 1.720k i/100ms Calculating ------------------------------------- pagy_t 323.021k (± 2.3%) i/s - 1.635M in 5.086475s rails-t 17.762k (± 2.6%) i/s - 89.440k in 5.067770s with 99.0% confidence Comparison: pagy_t: 323020.6 i/s rails-t: 17761.7 i/s - 18.19x (± 0.63) slower with 99.0% confidence |
pagy_t / rails-t |
---|
Memory ----------------------------------- pagy_t 0.59 Kb rails-t 5.62 Kb - 9.59x more Objects ----------------------------------- pagy_t 7 rails-t 46 - 6.57x more |