Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
71eb746c
Commit
71eb746c
authored
Jun 25, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #641 from toshok/increase_sqlalchemy_time
do 100 queries per insert instead of 1000 after all inserts.
parents
1bc20596
12e00f4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
minibenchmarks/sqlalchemy_declarative.py
minibenchmarks/sqlalchemy_declarative.py
+3
-4
minibenchmarks/sqlalchemy_imperative.py
minibenchmarks/sqlalchemy_imperative.py
+4
-5
No files found.
minibenchmarks/sqlalchemy_declarative.py
View file @
71eb746c
...
...
@@ -64,9 +64,8 @@ for i in xrange(100):
session
.
add
(
new_address
)
session
.
commit
()
# now do 1000 queries
for
i
in
xrange
(
1000
):
session
.
query
(
Person
).
all
()
# do 100 queries per insert
for
i
in
xrange
(
100
):
session
.
query
(
Person
).
all
()
print
"done"
minibenchmarks/sqlalchemy_imperative.py
View file @
71eb746c
...
...
@@ -56,10 +56,9 @@ for i in xrange(100):
new_address
=
Address
.
insert
()
new_address
.
execute
(
post_code
=
'00000'
)
#, person=new_person)
# now do 1000 queries
for
i
in
xrange
(
1000
):
s
=
Person
.
select
()
rs
=
s
.
execute
()
# do 100 queries per insert
for
i
in
xrange
(
100
):
s
=
Person
.
select
()
rs
=
s
.
execute
()
print
"done"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment