FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
workerd/.github/workflows/codspeed.yml at main · Reality2byte/workerd · GitHub
Reality2byte
/
workerd
Public
forked from
cloudflare/workerd
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
workerd
/
.github
/
workflows
/
codspeed.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
71 lines (61 loc) · 2.14 KB
Breadcrumbs
workerd
/
.github
/
workflows
/
codspeed.yml
Copy path
File metadata and controls
71 lines (61 loc) · 2.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name
:
CodSpeed
on
:
pull_request
:
paths-ignore
:
-
'
docs/**
'
-
'
justfile
'
-
'
.devcontainer
'
-
'
**/*.md
'
-
'
.gitignore
'
merge_group
:
push
:
branches
:
-
main
concurrency
:
group
:
codspeed.yml-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress
:
true
permissions
:
#
Write cache
contents
:
write
jobs
:
benchmarks
:
#
Temporarily disabled until benchmark quality and accuracy can be improved.
if
:
false
name
:
Run benchmarks
runs-on
:
ubuntu-22.04-16core
env
:
BAZEL_ARGS
:
--config=benchmark --@google_benchmark//:codspeed_mode=simulation --remote_cache=https://bazel:${{ secrets.BAZEL_CACHE_KEY }}@bazel-remote-cache.devprod.cloudflare.dev
steps
:
-
uses
:
actions/checkout@v6
with
:
show-progress
:
false
-
name
:
Cache
id
:
cache
uses
:
actions/cache@v5
with
:
path
:
~/bazel-disk-cache
key
:
bazel-disk-cache-benchmarks-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.bazelversion', '.bazelrc', 'MODULE.bazel') }}
-
name
:
Setup Runner
uses
:
./.github/actions/setup-runner
with
:
GOOGLESOURCE_COOKIE
:
${{ secrets.GOOGLESOURCE_COOKIE }}
-
name
:
Build benchmarks
run
:
|
bazel build ${{ env.BAZEL_ARGS }} --build_tag_filters=google_benchmark //... @capnp-cpp//...
-
name
:
Generate benchmark script
run
:
|
echo '#!/bin/bash' > run_benchmarks.sh
echo 'set -ex' >> run_benchmarks.sh
targets=$(bazel query 'attr(tags, "[\[ ]google_benchmark[,\]]", //... + @capnp-cpp//...) except attr(tags, "[\[ ]manual[,\]]", //...)' --output=label 2>/dev/null)
for target in $targets; do
echo "echo 'Running benchmark: $target'" >> run_benchmarks.sh
echo "bazel run ${{ env.BAZEL_ARGS }} $target -- --benchmark_min_time=1s" >> run_benchmarks.sh
done
chmod +x run_benchmarks.sh
-
name
:
Run benchmarks
uses
:
CodSpeedHQ/action@v4
with
:
mode
:
simulation
run
:
./run_benchmarks.sh
-
name
:
Bazel shutdown
run
:
bazel shutdown
Back
|
FazBrowse Home
|
New Git URL