Skip to content

Commit e8e6a75

Browse files
committed
add info about metadata format to README
1 parent b912d59 commit e8e6a75

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,31 @@ Currently supported sources:
77
- `criterion`
88

99
## Fields
10-
- `name` (required): name of the benchmark
10+
- `name` (required): name of the benchmark. This can optionally be specified with a given metadata format (see below)
1111
- `tool` (required): tool used to get benchmark output. One of `["cargo"]`
1212
- `os` (required): a string describing the os
1313
- `output-file-path` (required): a path to a file containing the output of the benchmark tool
1414
- `data-out-path` (required): the path where the output of the action should be written
1515

16+
## Metadata format
17+
18+
The `name` field can be provided as a `/`-separated string with the format `category/key size/name/platform/api`. The key size should be an integer. Some fields in this string can be left blank. Any unspecified or invalid fields will be parsed to `undefined`.
19+
1620
## Output data format
1721

1822
The output will be written to `data-out-path` in a standardized JSON format:
1923
```json
2024
[
21-
{
22-
"name": "My Custom Smaller Is Better Benchmark - Memory Used",
23-
"unit": "Megabytes",
24-
"os": "ubuntu-latest",
25-
"value": 100,
26-
"range": "3",
27-
}
25+
{
26+
"api": "unpacked",
27+
"category": "ML-KEM",
28+
"keySize": 768,
29+
"name": "PK Validation",
30+
"os": "ubuntu-latest",
31+
"platform": "neon",
32+
"range": "± 123",
33+
"unit": "ns/iter",
34+
"value": 12314,
35+
},
2836
]
2937
```

0 commit comments

Comments
 (0)