Skip to content

[Perf] CI speed profiling with hotpath #955

@lmmx

Description

@lmmx

Since we have the cargo bloat (#917), maybe we could do performance profiling in the same way with hotpath (which I just found out about!)

It profiles both latency and allocation, maybe this could be useful to pursue the perf goals here?

I'd set it up with a demo suite to be used to benchmark and cache the build as done for the cargo-bloat job.

The open question here is which pre-commit hooks to use as a 'standard' benchmark measure on...

  1. If you use a small number of built-in hooks then run-time will be dominated by setup
  2. If you use a larger number of external hooks then it'll be from running those

I'd pick 1 as it'd measure things directly in control of, and would likely be more sensitive (show small slowdowns as a bigger +% change overall), but open to others' feedback

Example

An example of it coming in handy from the author’s Twitter:

Image Image

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