Skip to content

Commit

Permalink
next
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst committed Jan 17, 2025
1 parent 987076a commit 5a96f81
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: benchmark-iai
run: |
sudo apt-get update -y && sudo apt-get install -y valgrind
cd ip2country-bench && make bench-inside-docker
cd ip2country-bench && just bench-inside-docker
- name: benchmark
run: cargo bench
2 changes: 1 addition & 1 deletion ip2country-bench/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/target
target/
.DS_Store
2 changes: 0 additions & 2 deletions ip2country-bench/Makefile

This file was deleted.

7 changes: 5 additions & 2 deletions ip2country-bench/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ build-docker:
docker build -t iai -f Dockerfile .

bench:
docker run -it -v "$(sh -c pwd)/..":/project iai \
/bin/bash -c "cd /project/ip2country-bench && make bench-inside-docker"
docker run -it -v "$(pwd)/..":/project iai \
/bin/bash -c "cd /project/ip2country-bench && IAI_ALLOW_ASLR=true cargo bench"

bench-inside-docker:
RUST_BACKTRACE=full IAI_ALLOW_ASLR=true cargo bench

0 comments on commit 5a96f81

Please sign in to comment.