Skip to content

Unstable benchmark results #8

@pekeler

Description

@pekeler

I've been getting fluctuating results running the benchmark on my laptop. So I set up a new server on Hetzner (CCX13 - 2 dedicated vCPU, 8GB) in hopes of more reliable measurements and ran the benchmark 3 times against v0.36.2 with nothing else running on that machine. But it's as bad as running it locally. These are the 4 most fluctuating results:

Scenario Category Run1 Run2 Run3 CV max/min
posts10k - author.id (extra join) check (with index) [reqs:100, conc:10, rule:"author.id = @request.auth.id", query:?perPage=20] List records 175.706ms 190.224ms 81.707ms 32.24% 2.328x
posts10k - author check (no index) [reqs:100, conc:10, rule:"author = @request.auth.id", query:?perPage=20] List records 1.026s 583.606ms 1.133s 26.01% 1.941x
posts100k - nested multiple relations lookup (no indexes, at-least-one, skipTotal) [reqs:100, conc:10, rule:"author.permissions.active ?= true", query:?perPage=20&skipTotal=1] List records 497.643ms 531.385ms 307.014ms 22.18% 1.731x
posts50k - simpleA (many requests, no rules, no concurrency) [reqs:1000, conc:1, rule:"", query:?perPage=20] List records 6.002s 9.156s 9.019s 18.06% 1.526x

Any idea what might cause this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions