Skip to content

Commit

Permalink
add mimalloc script
Browse files Browse the repository at this point in the history
  • Loading branch information
utaal committed Aug 20, 2024
1 parent 4878b32 commit 45cb539
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
12 changes: 12 additions & 0 deletions macro-perf/entry-mimalloc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

source "$HOME/.cargo/env"
export PATH=$PATH:/root/eval/verus/source/target-verus/release

apt-get update
apt-get install singular -y

export VERUS_SINGULAR_PATH=/usr/bin/Singular

cd verified-memory-allocator
./build-benchmarks-and-allocators.sh
./compare-benchmarks.sh
17 changes: 7 additions & 10 deletions site/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ bash run.sh

**TODO.** git sha.

This will clone a copy of Verus to use for the macrobenchmark performance experiments in this experimental set.
The scripts make no changes to the system outside of the repository, other than spawning
containers.

```shell
cd /mydata/verus-sosp24-artifact
bash setup/perf-build-verus.sh
Expand All @@ -110,7 +114,7 @@ bash setup/perf-build-verus.sh

**TODO.** git sha.

Setup by setting up
Clone the verified-memory-allocator repository:

```shell
cd /mydata
Expand All @@ -120,15 +124,8 @@ git clone https://github.com/verus-lang/verified-memory-allocator.git
Start a Ubuntu 22.04 container with Rust using the pre-made image:

```shell
cd verified-memory-allocator
docker run --platform=linux/amd64 -it -v /mydata/verus-sosp24-artifact -v .:/root/verified-memory-allocator -w /root/verified-memory-allocator ghcr.io/utaal/ubuntu-essentials-rust-1.76.0 /bin/bash
```

In the container run:

```
./build-benchmarks-and-allocators.sh
./compare-benchmarks.sh
cd /mydata
docker run --platform=linux/amd64 -it -v .:/root/eval -w /root/eval ghcr.io/utaal/ubuntu-essentials-rust-1.76.0 /bin/bash verus-sosp24-artifact/macro-perf/entry-mimalloc.sh
```

This should only take a couple of minutes.
Expand Down

0 comments on commit 45cb539

Please sign in to comment.