How can I benchmark my application for Pagy vs Kaminari?

This page summarizes the projects mentioned and recommended in the original post on /r/rails

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Scientist

    :microscope: A Ruby library for carefully refactoring critical paths.

    You could try using both gems and wrapping a few instances (or all) of your pagination logic in the scientist gem. I can't recall offhand if it has benchmarking built-in, but you could easily wrap your use and try blocks in benchmarking calls and compare that when you publish results.

  • There is a repo that does just that: https://github.com/ddnexus/pagination-comparison

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • geared_pagination

    Paginate Active Record sets at variable speeds

    If you're comparing pagination libraries you should consider including https://github.com/basecamp/geared_pagination too. It's a very nice idea on how to handle pagination it's also supported by Basecamp.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts