You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Workflow for this example](../../.github/workflows/lit.yml)
5
+
6
+
This directory shows how to use [`github-action-benchmark`](https://github.com/benchmark-action/github-action-benchmark)
7
+
with [lit](https://llvm.org/docs/CommandGuide/lit.html).
8
+
9
+
## Run benchmarks
10
+
11
+
Install dependencies with `venv` package using Python3.
12
+
13
+
```sh
14
+
$ python -m venv venv
15
+
$ source venv/bin/activate
16
+
$ pip install lit
17
+
```
18
+
19
+
Setup your test suite. In this example it consists of a configuration file for lit `lit.cfg` and two tests `a.txt` and `b.txt` containing one RUN line each.
20
+
21
+
e.g
22
+
23
+
```python
24
+
import lit.formats
25
+
26
+
config.name ="time-tests"
27
+
config.suffixes = [".txt"]
28
+
config.test_format = lit.formats.ShTest()
29
+
config.test_source_root =None
30
+
config.test_exec_root =None
31
+
```
32
+
33
+
```
34
+
# RUN: true
35
+
```
36
+
37
+
```
38
+
# RUN: sleep 1
39
+
```
40
+
41
+
And run the test suite with `--resultdb-output` in workflow. The JSON file will be an input to github-action-benchmark.
0 commit comments