-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4f5c21
commit 0c0ff34
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
name: bitvector performance testing | ||
on: | ||
push: | ||
branches: | ||
- "plots-bv" | ||
pull_request: | ||
merge_group: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
name: bitvector performance testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install elan 🕑 | ||
run: | | ||
set -o pipefail | ||
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none -y | ||
~/.elan/bin/lean --version | ||
echo "$HOME/.elan/bin" >> $GITHUB_PATH | ||
- name: Cache `.lake` folder | ||
id: cache-lake | ||
uses: actions/cache@v4 | ||
with: | ||
path: .lake | ||
key: ${{ runner.os }}-lake-tools-${{ hashFiles('lake-manifest.json') }} | ||
|
||
- name: Get mathlib cache (only if no cache available) | ||
if: steps.cache-lake.outputs.cache-hit != 'true' | ||
run: | | ||
lake -R exe cache get # download cache of mathlib docs. | ||
- name: Install bitwuzla | ||
run: | | ||
git clone https://github.com/bitwuzla/bitwuzla | ||
cd bitwuzla | ||
./configure.py | ||
cd build && ninja install | ||
- name: Run Hackers' Delight Performance Tests | ||
run : | | ||
cd bv-evaluation | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install pandas | ||
pip install numpy | ||
pip install matplotlib | ||
python3 compare-leansat-vs-bitwuzla.py | ||
python3 plot-leansat-vs-bitwuzla.py |