-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmain_urlclient_real.bash
executable file
·64 lines (54 loc) · 1.18 KB
/
main_urlclient_real.bash
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
60
61
62
#!/usr/bin/env bash
# Collect only the real time of execution and
# place in record: processes, real1,real2,real3
if [ $# -lt 2 ] ;then
echo "Usage: $0 urlextentions iterations"
exit 1
else
urlextentions=$1
iterations=$2
fi
. ./settings.bash
prog="urlclient_futures_pool.py"
program="$APPDIR/$prog"
# python3
# # python3 threads only, processes hang
# array[0]="t"
# for type in ${array[*]}
# do
# for processes in {1..40} #these must be ints, not vars
# do
# CMD="$PYTHON3 $program $type $urlextentions $processes $iterations"
# #echo $CMD
# $CMD
# done
# echo -n ""
# done
# python 2 threads and processes
# under python3 it hangs
array[0]="t"
array[1]="p"
for type in ${array[*]}
do
for processes in {1..40} #these must be ints, not vars
do
CMD="$PYTHON2 $program $type $urlextentions $processes $iterations"
# echo $CMD
$CMD
done
echo -n ""
done
# gevent
# # python2
# array2[0]=urlclient_gevent_pool.py
# for prog in ${array2[*]}
# do
# program="$APPDIR/$prog"
# for processes in {1..40} #these must be ints, not vars
# do
# CMD=" $PYTHON2 $program $urlextentions $processes $iterations"
# #echo $CMD
# $CMD
# done
# echo -n ""
# done