-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstep2a-memusage.sh
executable file
·31 lines (25 loc) · 1015 Bytes
/
step2a-memusage.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
set -e
set -o xtrace
# Yjs memory usage
(
cd tools/bench-yjs
npm i
node --expose-gc bench-memusage.js
)
# Memory usage tool to measure Automerge & Yrs
cargo build --profile memusage --features memusage --manifest-path tools/paper-benchmarks/Cargo.toml
# Automerge memory usage
tools/paper-benchmarks/target/memusage/paper-benchmarks -a
# Yrs memory usage
tools/paper-benchmarks/target/memusage/paper-benchmarks -y
# dtcrdt (reference CRDT) memory usage
cargo build --profile memusage -p run_on_old --features memusage --manifest-path tools/diamond-types/Cargo.toml
tools/diamond-types/target/memusage/run_on_old
# dt (egwalker) memory usage & misc stats
cargo build --release -p paper-stats --features memusage --manifest-path tools/diamond-types/Cargo.toml
tools/diamond-types/target/release/paper-stats
# OT
echo 'NOTE: This takes 1+ hour to run!'
cargo build --profile memusage --features memusage --manifest-path tools/ot-bench/Cargo.toml
tools/ot-bench/target/memusage/ot-bench