Skip to content

Commit

Permalink
benchmarking for ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
Undo1 committed Jul 2, 2015
1 parent 19e9f78 commit 528bc3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bodyfetcher.py
Expand Up @@ -70,6 +70,7 @@ def make_api_call_for_site(self, site):
return

for post in response["items"]:
start = time.time()
if "title" not in post or "body" not in post:
continue
title = GlobalVars.parser.unescape(post["title"])
Expand Down Expand Up @@ -131,4 +132,7 @@ def make_api_call_for_site(self, site):
)
except:
print "no answers"
end = time.time()
print "benchmark"
print end - start
return

0 comments on commit 528bc3b

Please sign in to comment.