mirror of
https://codeberg.org/gigirassy/riptide
synced 2026-08-30 23:27:39 +00:00
even more pgo
This commit is contained in:
@@ -62,24 +62,51 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
rm -rf /tmp/riptide-pgo
|
SITEMAP_URL='https://riptide-pgo.blitzw.in/sitemaps/sitemap.xml'
|
||||||
mkdir -p /tmp/riptide-pgo/profiles
|
SITEMAP_URL_2='https://riptide-pgo.blitzw.in/sitemaps2/sitemap.xml'
|
||||||
|
|
||||||
RUSTFLAGS="
|
printf 'Training round 1 with sitemap: <%s>\n' "$SITEMAP_URL"
|
||||||
-C target-feature=+crt-static
|
|
||||||
-C profile-generate=/tmp/riptide-pgo/profiles
|
|
||||||
" cargo build \
|
|
||||||
--release \
|
|
||||||
--target "$LINUX_TARGET"
|
|
||||||
|
|
||||||
cp \
|
timeout 10m \
|
||||||
"target/$LINUX_TARGET/release/riptide" \
|
/tmp/riptide-pgo/riptide \
|
||||||
/tmp/riptide-pgo/riptide
|
--sitemap "$SITEMAP_URL" \
|
||||||
|
--output /tmp/pgo-urls.txt \
|
||||||
|
--scheme https \
|
||||||
|
--workers 16 \
|
||||||
|
--timeout-secs 30
|
||||||
|
|
||||||
chmod +x /tmp/riptide-pgo/riptide
|
test -s /tmp/pgo-urls.txt
|
||||||
|
|
||||||
file /tmp/riptide-pgo/riptide
|
echo "Training round 1 input:"
|
||||||
|
wc -l /tmp/pgo-urls.txt
|
||||||
|
|
||||||
|
printf 'Training round 2 with sitemap: <%s>\n' "$SITEMAP_URL_2"
|
||||||
|
|
||||||
|
timeout 10m \
|
||||||
|
/tmp/riptide-pgo/riptide \
|
||||||
|
--sitemap "$SITEMAP_URL_2" \
|
||||||
|
--output /tmp/pgo-urls-2.txt \
|
||||||
|
--scheme https \
|
||||||
|
--workers 16 \
|
||||||
|
--timeout-secs 30
|
||||||
|
|
||||||
|
test -s /tmp/pgo-urls-2.txt
|
||||||
|
|
||||||
|
echo "Training round 2 input:"
|
||||||
|
wc -l /tmp/pgo-urls-2.txt
|
||||||
|
|
||||||
|
echo "Generated profiles:"
|
||||||
|
find /tmp/riptide-pgo/profiles \
|
||||||
|
-name '*.profraw' \
|
||||||
|
-type f \
|
||||||
|
-print
|
||||||
|
|
||||||
|
test -n "$(
|
||||||
|
find /tmp/riptide-pgo/profiles \
|
||||||
|
-name '*.profraw' \
|
||||||
|
-type f \
|
||||||
|
-print -quit
|
||||||
|
)"
|
||||||
- name: Verify instrumented binary
|
- name: Verify instrumented binary
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user