Skip to content

Benchmark test #68

@arisawali2014

Description

@arisawali2014

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,
  ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions