benchmark-action / benchmark-action/github-action-benchmark

Custom type with combined bigger/smaller is better

Open
#84 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.3k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

In addition to `customBiggerIsBetter` and `customSmallerIsBetter` it would be nice to just have a simple `custom` type where the JSON output would include `"better": "bigger"` or `"better": "smaller"` so that a single benchmark could make use of both. For example, I might want to measure both memory use (smaller is better) and throughput (bigger is better) for a single benchmark. While I could potentially save the results to a file and split them apart into two separate benchmark outputs, it would be simpler if this was not necessary.

EDIT: Having a quick look at the current code structure, I can see this probably isn't easy to do but it still would be nice :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.