Skip to content

Commit 1974c4d

Browse files
committed
Bump versions tested
Also, a couple minor updates.
1 parent 07c891e commit 1974c4d

6 files changed

Lines changed: 21 additions & 18 deletions

File tree

‎_nodejs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bugs" : "http://github.com/cdata/somename/issues",
77
"dependencies" : {
88
"argparse": "~1.0.7",
9-
"pg" : "~6.0.0",
9+
"pg" : "~6.1.0",
1010
"pg-native": "~1.10.0"
1111
}
1212
}

‎_python/mkvirtualenv‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ if [ -n "${VIRTUAL_ENV}" ]; then
1919
unset VIRTUAL_ENV
2020
fi
2121

22-
python3 -m venv "${1}"
22+
PYTHON="${PYTHON:-python3}"
23+
24+
"${PYTHON}" -m venv "${1}"
2325
source "${1}/bin/activate"
24-
pip install -U pip wheel
26+
pip install -U pip wheel setuptools
2527
pip install -U -r "${2}"

‎_python/requirements.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
aiopg==0.10.0
2-
asyncpg==0.5.2
1+
aiopg==0.13.0
2+
asyncpg==0.8.2
33
py-postgresql==1.1.0
44
psycopg2==2.6.2
55
numpy~=1.11.0
6-
uvloop~=0.5.0
6+
uvloop~=0.7.1

‎pgbench‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,9 @@ def format_report(data, target_file):
354354

355355
BENCHMARKS = [
356356
'golang-libpq',
357-
'golang-pgx',
358357
'python-aiopg',
359358
'python-aiopg-tuples',
360359
'python-asyncpg',
361-
'python-psycopg',
362-
'python-postgresql',
363360
'nodejs-pg',
364361
'nodejs-pg-native',
365362
]
@@ -523,17 +520,21 @@ def main():
523520
pg_cluster.trust_local_connections()
524521
pg_cluster.start(port='dynamic')
525522

526-
pghost, pgport = pg_cluster.get_connection_addr()
527-
pguser = 'postgres'
523+
conn_spec = pg_cluster.get_connection_spec()
524+
if not conn_spec.get('user'):
525+
conn_spec['user'] = 'postgres'
528526
else:
529527
pg_cluster = None
530-
pghost = args.pghost
531-
pgport = args.pgport
532-
pguser = args.pguser
528+
conn_spec = {
529+
'host': args.pghost,
530+
'port': args.pgport,
531+
'user': args.pguser
532+
}
533533

534534
try:
535-
benchmarks_data = \
536-
run_benchmarks(args, variations, pghost, pgport, pguser)
535+
benchmarks_data = run_benchmarks(
536+
args, variations, conn_spec['host'],
537+
conn_spec['port'], conn_spec['user'])
537538
finally:
538539
if pg_cluster is not None:
539540
pg_cluster.stop()

‎report/report.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ <h2>Detailed Benchmark Data</h2>
140140

141141
var fullWidth = (options.width || 1000),
142142
fullHeight = (options.height || 370),
143-
margin = {top: 10, right: 65, bottom: 55, left: 65},
143+
margin = {top: 10, right: 100, bottom: 55, left: 100},
144144
width = fullWidth - margin.left - margin.right,
145145
height = fullHeight - margin.top - margin.bottom,
146146
benchmarks = data;

‎requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
asyncpg~=0.5.0
1+
asyncpg~=0.8.0
22
numpy~=1.10.4

0 commit comments

Comments
 (0)