File: run_perf_tests.sh

package info (click to toggle)
python-cykhash 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,240 kB
  • sloc: python: 3,954; sh: 90; makefile: 7
file content (35 lines) | stat: -rw-r--r-- 718 bytes parent folder | download
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
WRAPPER="/usr/bin/time -fpeak_used_memory:%M(Kb)"

pip install numpy
pip install pandas


echo "\n\n-----Testing build-in test set\n\n"
for N  in "1000" "10000" "100000" "1000000" "10000000"
do
   $WRAPPER python perf_tests/mem_test_set.py $N
done 



echo "\n\n-----Testing build-in khash-set\n\n"
for N  in "1000" "10000" "100000" "1000000" "10000000"
do
   $WRAPPER python perf_tests/mem_test_khash.py $N
done  


echo "\n\n-----Testing pandas isin\n\n"
python perf_tests/isin_test.py



echo "\n\n-----Testing pandas unique\n\n"
for N  in "10000000" "20000000" "40000000" "60000000" "80000000"
do
    $WRAPPER python perf_tests/pandas_unique_test.py $N
    $WRAPPER python perf_tests/cyunique_test.py $N
done