fast-paginate
fast-paginate copied to clipboard
Benchmark test
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,
]