<p></p>
<blockquote>
<p dir="auto">Password hash creation is deliberately slow, to make brute forcing hard</p>
</blockquote>
<p dir="auto">absolutely. In a production environment, we'd want to do the slow and laborious hash creation, but for testing, we don't.</p>
<p dir="auto">So, I hard-coded a generated hash (for the tests/factory data), so when setting up 4000 test users, the deliberately slow function is never called, and it saved a ton of time:</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4708/files#diff-3cb894babbd387f02bde8eb4daf7ddb6f0a5207d0562af589dc59a5653092c04R5">https://github.com/openstreetmap/openstreetmap-website/pull/4708/files#diff-3cb894babbd387f02bde8eb4daf7ddb6f0a5207d0562af589dc59a5653092c04R5</a></p>
<p dir="auto">I'm still optimistic about a 90% improvement in test run time - I'm aiming for ~1.5 minutes, total. I don't know if I'll get there, but we're trying! :)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4708#issuecomment-2064213359">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOBZC5CYMOJFJVYZIDY57QMNAVCNFSM6AAAAABGJWCJB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRUGIYTGMZVHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNMF4QVQWP3QNZFQD3Y57QMNA5CNFSM6AAAAABGJWCJB6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT3BFSW6.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4708/c2064213359</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4708#issuecomment-2064213359",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4708#issuecomment-2064213359",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>