-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtime_test.sh
executable file
·35 lines (27 loc) · 1.17 KB
/
time_test.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
#!/bin/bash
echo "equality test!"
echo "TODO"
echo "cold cache test"
su -c "echo 3 > /proc/sys/vm/drop_caches"
echo "### find (raw)"
time find ~/projects/ -not \( -path "*/src/*" -prune \) -not \( -path "*/.git/*" -prune \) -iname ".git" -or -iname ".project" -or -iname ".groupproject"> /dev/null
su -c "echo 3 > /proc/sys/vm/drop_caches"
echo "### find_arr:"
time ./find_test.sh > /dev/null
echo "### rpc:"
su -c "echo 3 > /proc/sys/vm/drop_caches"
time ./target/release/project-walker > /dev/null
echo
echo "warm cache test"
su -c "echo 3 > /proc/sys/vm/drop_caches"
find ~/projects/ -not \( -path "*/src/*" -prune \) -not \( -path "*/.git/*" -prune \) -iname ".git" -or -iname ".project" -or -iname ".groupproject"> /dev/null
echo "### find (raw)"
time find ~/projects/ -not \( -path "*/src/*" -prune \) -not \( -path "*/.git/*" -prune \) -iname ".git" -or -iname ".project" -or -iname ".groupproject"> /dev/null
su -c "echo 3 > /proc/sys/vm/drop_caches"
./find_test.sh > /dev/null
echo "### find_arr:"
time ./find_test.sh > /dev/null
su -c "echo 3 > /proc/sys/vm/drop_caches"
./target/release/project-walker > /dev/null
echo "### rpc:"
time ./target/release/project-walker > /dev/null