forked from schencoding/lbtree
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMyCheckTree.sh
executable file
·59 lines (51 loc) · 1.41 KB
/
MyCheckTree.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
if [ $# != 1 ]; then
echo "Usage: $0 <tree>";
exit 0;
fi
if [ ! -x $1 ]; then
echo "$1 is not an executable";
exit 0;
fi
nvmfile=/mnt/mypmem0/chensm/leafdata
cmdinit="$1 thread 2 mempool 50 nvmpool ${nvmfile} 200"
echo 'debug_bulkload'
echo -n 'Test 1: '
${cmdinit} debug_bulkload 123 1.0 | grep good
echo -n 'Test 2: '
${cmdinit} debug_bulkload 500 0.9 | grep good
echo -n 'Test 3: '
${cmdinit} debug_bulkload 1234567 1.0 | grep good
echo -n 'Test 4: '
${cmdinit} debug_bulkload 1234567 0.7 | grep good
echo 'debug_insert'
echo -n 'Test 5: '
${cmdinit} debug_insert 10 | grep good
echo -n 'Test 6: '
${cmdinit} debug_insert 102 | grep good
echo -n 'Test 7: '
${cmdinit} debug_insert 1025 | grep good
echo -n 'Test 8: '
${cmdinit} debug_insert 31025 | grep good
echo -n 'Test 9: '
${cmdinit} debug_insert 371025 | grep good
echo 'debug_del'
echo -n 'Test 10: '
${cmdinit} debug_del 10 | grep good
echo -n 'Test 11: '
${cmdinit} debug_del 120 | grep good
echo -n 'Test 12: '
${cmdinit} debug_del 3120 | grep good
echo -n 'Test 13: '
${cmdinit} debug_del 83120 | grep good
echo -n 'Test 14: '
${cmdinit} debug_del 583120 | grep good
echo 'debug_lookup'
echo -n 'Test 15: '
${cmdinit} debug_lookup 20 1.0 | grep good
echo -n 'Test 16: '
${cmdinit} debug_lookup 320 1.0 | grep good
echo -n 'Test 17: '
${cmdinit} debug_lookup 5320 1.0 | grep good
echo -n 'Test 18: '
${cmdinit} debug_lookup 101180 1.0 | grep good