Author: Matti Picus <matti.pi...@gmail.com> Branch: Changeset: r437:52af1db49be7 Date: 2020-01-16 15:23 +1100 http://bitbucket.org/pypy/benchmarks/changeset/52af1db49be7/
Log: fix sqlite3 benchmark diff --git a/own/sqlitesynth.py b/own/sqlitesynth.py --- a/own/sqlitesynth.py +++ b/own/sqlitesynth.py @@ -22,7 +22,8 @@ conn = sqlite3.connect(":memory:") conn.execute('create table cos (x, y, z);') for i in range(300000): - conn.execute('insert into cos values (?, ?, ?)', [i, math.cos(i), str(i)]) + cur = conn.execute('insert into cos values (?, ?, ?)', [i, math.cos(i), str(i)]) + cur.close() conn.create_function("cos", 1, math.cos) for x, cosx1, cosx2 in conn.execute("select x, cos(x), y from cos"): assert math.cos(x) == cosx1 == cosx2 diff --git a/saveresults.py b/saveresults.py --- a/saveresults.py +++ b/saveresults.py @@ -27,7 +27,6 @@ import sys import time import urllib -import pprint try: import urllib2 except ImportError: @@ -107,7 +106,6 @@ (str(datetime.today()), data[0]['executable'], str(data[0]['commitid']), data[0]['benchmark'])) print(info) - pprint.pprint(data) try: retries = [1, 2, 3, 6] while True: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit