Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1476)

Issue 12665045: Performance testing for subscribers determination (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by ana.balica
Modified:
10 years, 9 months ago
Reviewers:
thomas.j.waldmann, ReimarBauer, waldi
Visibility:
Public.

Description

Average time for determining subscribers is 0.022 seconds for 100 subscribed users.

Patch Set 1 #

Total comments: 5

Patch Set 2 : Test each subscription type #

Total comments: 4

Patch Set 3 : Raise the nr of users and test one subscription per type #

Total comments: 1

Patch Set 4 : Print execution time of get_subscribers() #

Total comments: 1

Patch Set 5 : Print time info in one line #

Patch Set 6 : Ж�One subscription type per assert #

Patch Set 7 : Test for 1% of subscribers #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M MoinMoin/util/_tests/test_subscriptions.py View 1 2 3 4 5 6 2 chunks +41 lines, -0 lines 2 comments Download

Messages

Total messages: 9
waldi
https://codereview.appspot.com/12665045/diff/1/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/12665045/diff/1/MoinMoin/util/_tests/test_subscriptions.py#newcode94 MoinMoin/util/_tests/test_subscriptions.py:94: for i in xrange(100): 100 is a bit small. ...
10 years, 9 months ago (2013-08-11 08:09:08 UTC) #1
Thomas.J.Waldmann
https://codereview.appspot.com/12665045/diff/1/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/12665045/diff/1/MoinMoin/util/_tests/test_subscriptions.py#newcode94 MoinMoin/util/_tests/test_subscriptions.py:94: for i in xrange(100): On 2013/08/11 08:09:08, waldi wrote: ...
10 years, 9 months ago (2013-08-11 10:36:59 UTC) #2
Thomas.J.Waldmann
https://codereview.appspot.com/12665045/diff/13001/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/12665045/diff/13001/MoinMoin/util/_tests/test_subscriptions.py#newcode88 MoinMoin/util/_tests/test_subscriptions.py:88: (NAMEPREFIX, u"fo", NAMESPACE_DEFAULT), ], you won't be able to ...
10 years, 9 months ago (2013-08-11 10:42:41 UTC) #3
ana.balica
https://codereview.appspot.com/12665045/diff/1/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/12665045/diff/1/MoinMoin/util/_tests/test_subscriptions.py#newcode100 MoinMoin/util/_tests/test_subscriptions.py:100: expected_names.add(user_.name0) On 2013/08/11 10:36:59, Thomas.J.Waldmann wrote: > maybe all ...
10 years, 9 months ago (2013-08-11 10:51:17 UTC) #4
ana.balica
https://codereview.appspot.com/12665045/diff/13001/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/12665045/diff/13001/MoinMoin/util/_tests/test_subscriptions.py#newcode108 MoinMoin/util/_tests/test_subscriptions.py:108: assert subscribers_names == expected_names On 2013/08/11 10:42:41, Thomas.J.Waldmann wrote: ...
10 years, 9 months ago (2013-08-11 10:59:41 UTC) #5
ana.balica
https://codereview.appspot.com/12665045/diff/17002/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/12665045/diff/17002/MoinMoin/util/_tests/test_subscriptions.py#newcode102 MoinMoin/util/_tests/test_subscriptions.py:102: subscribers = get_subscribers(self.item) Time performance results: ITEMID: 0.920804023743 NAME: ...
10 years, 9 months ago (2013-08-11 15:35:11 UTC) #6
Thomas.J.Waldmann
https://codereview.appspot.com/12665045/diff/23001/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/12665045/diff/23001/MoinMoin/util/_tests/test_subscriptions.py#newcode107 MoinMoin/util/_tests/test_subscriptions.py:107: print "Execution time:\t{0} s".format(elapsed_time) maybe one line for test ...
10 years, 9 months ago (2013-08-11 15:56:54 UTC) #7
ana.balica
https://codereview.appspot.com/12665045/diff/28001/MoinMoin/util/_tests/test_subscriptions.py File MoinMoin/util/_tests/test_subscriptions.py (right): https://codereview.appspot.com/12665045/diff/28001/MoinMoin/util/_tests/test_subscriptions.py#newcode112 MoinMoin/util/_tests/test_subscriptions.py:112: subscribers = get_subscribers(self.item) Testing 100 subscribers from a total ...
10 years, 9 months ago (2013-08-12 05:17:27 UTC) #8
ReimarBauer
10 years, 9 months ago (2013-08-12 08:35:29 UTC) #9
Message was sent while issue was closed.
https://codereview.appspot.com/12665045/diff/28001/MoinMoin/util/_tests/test_...
File MoinMoin/util/_tests/test_subscriptions.py (right):

https://codereview.appspot.com/12665045/diff/28001/MoinMoin/util/_tests/test_...
MoinMoin/util/_tests/test_subscriptions.py:103: import time
why is time imported here?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b