-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdebug.sh
More file actions
42 lines (32 loc) · 876 Bytes
/
debug.sh
File metadata and controls
42 lines (32 loc) · 876 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
set -e
set -o pipefail
export TS=`date +%s`
echo TS is $TS
# pushd ../whisper && python ../whisper/setup.py install > /dev/null && popd
# export FNAME="1-5-5-5-10-5"
# export ARCHIVE="1:5 5:5 10:5"
# export FNAME="1s-6h-1h-1d-24h-20y"
# export ARCHIVE="1s:6h 1h:1d 24h:20y"
export FNAME="1s-24h-1h-30d-24h-30y"
export ARCHIVE="1s:24h 1h:30d 24h:30y"
rm test/fixtures/$FNAME.wsp.{python,rust}
whisper-create.py test/fixtures/$FNAME.wsp.python $ARCHIVE
whisper-create.py test/fixtures/$FNAME.wsp.rust $ARCHIVE
echo "PYTHON TIME"
time {
for i in `seq 1 100000`;
do
whisper-update.py test/fixtures/$FNAME.wsp.python $TS:10
done
}
echo "RUST TIME"
time {
for i in `seq 1 100000`;
do
RUST_LOG=warning target/release/whisper update test/fixtures/$FNAME.wsp.rust $TS 10
done
}
diff test/fixtures/$FNAME.wsp.*
if [[ $? -eq 0 ]]; then
echo "whisper files match"
fi