Skip to content

[Question/FR] measuring execution time along the memory usage #347

@NightMachinery

Description

@NightMachinery

I want to benchmark some functions and compare them. (I do NOT want to profile these functions' internals.) I need to run the functions multiple times (more for functions that take less to finish) and get their time and peak memory usage statistics. Basically what https://github.com/JuliaCI/BenchmarkTools.jl does for Julia.

I'd also like to abort the functions when they take more than X minutes.

Is this possible with memory_profiler? Or any other Python packages you happen to know?

Thanks.

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