Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Possible cheap win to make your playdoh test suite 100% faster
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Bengtsson  
View profile  
 More options Nov 1 2012, 10:49 am
Newsgroups: mozilla.dev.webdev
From: Peter Bengtsson <pbengts...@mozilla.com>
Date: Thu, 01 Nov 2012 07:49:47 -0700
Local: Thurs, Nov 1 2012 10:49 am
Subject: Possible cheap win to make your playdoh test suite 100% faster
The above subject line was probably the spam-soundigast ever.

Anyway, if you haven't already done so, change to a very basic password
hasher for your unit tests and you see really dramatic speedups.

For example:
Elmo:
From:
   Ran 170 tests in 27.822s
To:
   Ran 170 tests in 14.478s
https://bugzilla.mozilla.org/show_bug.cgi?id=806600#c0

Airmozilla:
From:
   Ran 89 tests in 58.455s
To:
   Ran 89 tests in 15.668s

All you have to do is add the following lines to settings_test.py in the
repo root (not the package root)::

PASSWORD_HASHERS = (
     'django.contrib.auth.hashers.MD5PasswordHasher',
)

There is no reason to use bcrypt to store passwords belonging to fixture
users.

Hail jbalogh's brutal but powerful test-utils which is shipped with
every playdoh project!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Bengtsson  
View profile  
 More options Nov 5 2012, 5:44 pm
Newsgroups: mozilla.dev.webdev
From: Peter Bengtsson <pbengts...@mozilla.com>
Date: Mon, 05 Nov 2012 14:44:48 -0800
Local: Mon, Nov 5 2012 5:44 pm
Subject: Re: Possible cheap win to make your playdoh test suite 100% faster
FYI, this is now default in playdoh:
https://github.com/mozilla/playdoh/commit/42f11e27d98da3af4c86af64d57...

On 01/11/2012 07:49, Peter Bengtsson wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »