Skip to content

Commit 357a700

Browse files
adriencacciacodspeedbot
authored andcommitted
feat: add CodSpeed to the project
1 parent b1d6ff5 commit 357a700

50 files changed

Lines changed: 107 additions & 5727 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/README.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/auto_approve.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/benchmark.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: codspeed-benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- "main" # or "master"
7+
pull_request:
8+
# `workflow_dispatch` allows CodSpeed to trigger backtest
9+
# performance analysis in order to generate initial data.
10+
workflow_dispatch:
11+
12+
env:
13+
# web_sys_unstable_apis is required to enable the web_sys clipboard API which egui_web uses
14+
# https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html
15+
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html
16+
RUSTFLAGS: --cfg=web_sys_unstable_apis --deny warnings
17+
18+
# See https://github.com/ericseppanen/cargo-cranky/issues/8
19+
RUSTDOCFLAGS: --deny warnings --deny rustdoc::missing_crate_level_docs
20+
21+
# Not only `sccache` cannot cache incremental builds, it's counter-productive to generate all
22+
# these incremental artifacts when running on CI.
23+
CARGO_INCREMENTAL: "0"
24+
25+
jobs:
26+
benchmarks:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Setup rust toolchain, cache and cargo-codspeed binary
31+
uses: moonrepo/setup-rust@v1
32+
with:
33+
channel: stable
34+
cache-target: release
35+
bins: cargo-codspeed
36+
cache-base: main
37+
38+
- name: Build the benchmark target(s)
39+
# have to run one at a time since multiple packages is not yet supported
40+
# `--all-features` is not supported
41+
run: |
42+
# cargo codspeed build -p re_int_histogram # not used in `.github/workflows/reusable_bench.yml`
43+
# cargo codspeed build -p re_log_types # not used in `.github/workflows/reusable_bench.yml`
44+
# cargo codspeed build -p re_query_cache # not used in `.github/workflows/reusable_bench.yml`
45+
# cargo codspeed build -p re_query_cache2 # not used in `.github/workflows/reusable_bench.yml`
46+
# cargo codspeed build -p re_space_view_spatial # not used in `.github/workflows/reusable_bench.yml`
47+
# cargo codspeed build -p re_types_core # not used in `.github/workflows/reusable_bench.yml`
48+
49+
# cargo codspeed build -p re_entity_db # no benchmarks defined in this package
50+
51+
cargo codspeed build -p re_log_encoding --features=decoder,encoder
52+
cargo codspeed build -p re_query -p re_tuid
53+
54+
- name: Run the benchmarks
55+
uses: CodSpeedHQ/action@v2
56+
with:
57+
token: ${{ secrets.CODSPEED_TOKEN }}
58+
run: cargo codspeed run

.github/workflows/checkboxes.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/clear_cache.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)