Skip to content

Support criterion benchmark group displays #20

Open
@EYHN

Description

@EYHN

First of all I would like to thank you for making such a good benchmark action, which is almost the only well-functioning and well-maintained benchmark action on github. 🙏 🎉

I have a benchmark that uses criterion benchmark_group to compare multiple functions, for example I have the following benchmark code:

let mut group = c.benchmark_group("Map Insert");
group.bench_function("HashMap", |b| {
    ...
});
group.bench_function("BTreeMap", |b| {
    ...
});

When I run the benchmark locally, I can see in the console that the benchmark's name is a combination of the group's name and the function's name.

Map Insert/HashMap      time:   [275.12 ns 284.51 ns 293.79 ns]
Map Insert/BTreeMap     time:   [418.15 ns 424.73 ns 431.82 ns]

However, when running in codspeed, the result is only the function name, without the group name, which makes it difficult to compare.

图片

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions