Skip to content

2 warmup iterations should be a default, or something #72

@dabrahams

Description

@dabrahams

Swift builds up lots of metadata and witness table caches at runtime, and when timing things that go quickly, that can be really significant. At least if the iterations are fast enough, you should throw away the first one to get those caches initialized, and maybe throw out another, to get the fast paths into the i-cache. I found adding warmup iterations could drastically change the relative measurement of some benchmarks.

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