Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 14, 2024
1 parent fae1bd6 commit fae19a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Do the thing in CI

on:
push:
branches: ["master"]
branches: ["master", "max_rss"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ RUN cd && curl -fSL "$(curl -fSL https://ziglang.org/download/index.json | jq -r
&& rm zig.tar.xz
ENV PATH="/root/.zig:$PATH"

RUN cargo install --git https://github.com/acheronfail/max_rss.git --rev fae12f9

WORKDIR /var/count
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ measure what:
jq '. += {"size":"'"$(cat SIZE)"'"}' "$out" | sponge "$out"
fi

gdb --command rss.gdb --args $(cat CMD) >/dev/null
jq '. += {"rss":'$(( $(rg -oPr '$1' 'Rss:\s*(\d+)' ./rss.txt) * 1024 ))'}' "$out" | sponge "$out"
max_rss $(cat CMD)
jq '. += {"rss":'$(jq '.max_rss' ./max_rss.json)'}' "$out" | sponge "$out"

measure-all:
#!/usr/bin/env bash
Expand Down Expand Up @@ -274,6 +274,7 @@ build-cobol: (_check "cobc") && (_size "count")
echo './count {{i}}' > CMD

build-julia: (_check "julia")
rm -f "$HOME/.julia/juliaup/.juliaup-lock"
julia --version > VERSION
echo 'julia ./count.jl {{i}}' > CMD

Expand Down

0 comments on commit fae19a1

Please sign in to comment.