Skip to content

Commit ee52cce

Browse files
committed
fix some misc issues
1 parent c1afb8e commit ee52cce

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

benchmarks/aiohttp_requirements.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
aiohttp==3.7.3
2+
async-timeout==3.0.1
3+
attrs==20.3.0
4+
certifi==2020.12.5
5+
chardet==3.0.4
6+
gunicorn==20.0.4
7+
idna==2.10
8+
multidict==5.1.0
9+
requests==2.25.1
10+
typing-extensions==3.7.4.3
11+
urllib3==1.26.4
12+
uvloop==0.14.0
13+
yarl==1.6.3

benchmarks/gevent_bench_hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,5 @@ def main():
118118

119119
if __name__ == '__main__':
120120
# main()
121-
for i in range(3000):
121+
for i in range(10000):
122122
bench_switch()

benchmarks/gunicorn_requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
aiohttp==3.7.3
22
async-timeout==3.0.1
33
attrs==20.3.0
4+
certifi==2020.12.5
5+
chardet==3.0.4
46
gunicorn==20.0.4
7+
idna==2.10
58
multidict==5.1.0
9+
requests==2.25.1
610
typing-extensions==3.7.4.3
11+
urllib3==1.26.4
712
uvloop==0.14.0
813
yarl==1.6.3

run_all.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mkdir -p results
1515
ENV=/tmp/macrobenchmark_env
1616
for bench in flaskblogging djangocms mypy_bench pylint_bench pycparser_bench pytorch_alexnet_inference gunicorn aiohttp thrift_bench gevent_bench_hub; do
1717
rm -rf $ENV
18-
virtualenv -p $BINARY $ENV
19-
$ENV/bin/pip install -r benchmarks/${bench}_requirements.txt
20-
/usr/bin/time --verbose --output=results/${bench}.out $ENV/bin/python benchmarks/${bench}.py
18+
$BINARY -m venv $ENV
19+
$ENV/bin/pip install -r $(dirname $0)/benchmarks/${bench}_requirements.txt
20+
/usr/bin/time --verbose --output=results/${bench}.out $ENV/bin/python $(dirname $0)/benchmarks/${bench}.py
2121
done

0 commit comments

Comments
 (0)