Skip to content

Add single thread performance statistics for typechecking #142

Description

@davidhalter

In my experience it would be very interesting to have single threaded performance as well to see how

  1. Type checkers perform on machines with fewer threads
  2. How much Watt/type check they use to understand if a notebook will get warmer
  3. How well a type checker scales with threads

https://python-type-checking.com/typecheck_benchmark/

For example, Zuban will most likely have a much better performance single core than Pyrefly/Ty, while on the other hand they scale better with threads (not sure how exactly though).

Alternatively it would also be an interesting metric to just have the used resources, e.g. Zuban will use significantly less CPU than Pyrefly/Ty at similar speeds. This is very relevant on notebooks for example, because they tend to get hot and slow their CPUs if you rerun type checking a few times.

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