fast-paginate icon indicating copy to clipboard operation
fast-paginate copied to clipboard

Benchmark test

Open arisawali2014 opened this issue 1 year ago • 2 comments

I tried to benchmark it with production. Why is it slower?

Benchmark::measure([
fn() => Invoice::simplePaginate(),
fn() =>Invoice::paginate(),
fn()=>Invoice::fastPaginate()]);
= [
    252.726125,
    1597.069791,
    1705.214708,
  ]
Benchmark::measure([  
  fn() => Invoice::orderBy('created_at')->simplePaginate(),
  fn() =>Invoice::orderBy('created_at')->paginate(),
  fn()=>Invoice::orderBy('created_at')->fastPaginate()
]);
= [
    847.420583,
    3027.214792,
    3190.175208,
  ]

arisawali2014 avatar Oct 20 '24 06:10 arisawali2014