Skip to content

Performance benchmarks #18

Description

@Nyholm

So I did some testing on a small app. I tested with #17 included (that PR does not have any performance impact).

A normal request: 10ms
First request: 1805ms
First request with BrefKernel: 510ms

BrefKernel spent 88ms preparing cache directory. It spent 77 ms out of those 88ms to copy the "pools" directory.


So thanks so #17, I disabled copying "pools" and enabled opcache.preload.

A normal request: 7.5ms
First request: 1144ms
First request with BrefKernel: 160ms

Yes. The first (cold) request is still 20 times slower. (Or 51x slower without preloading) But it is better than 180x slower as we began with.


Note: These sample data may not be reliable. I only did 2 samples of each. To get better data I should take 5-10 samples and show the average. However, I did deploy over CI so I know the process of warmup etc is the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions