refine measure script, update plan
This commit is contained in:
parent
a0e1d9e4d7
commit
26e4e1d9be
4
plan.txt
4
plan.txt
@ -26,10 +26,6 @@
|
||||
|
||||
## doveauth questions/futures
|
||||
|
||||
- measurement:
|
||||
What happens if you do 100 logins in parallel?
|
||||
What fraction is taken by TLS, what by dovecot-auth?
|
||||
|
||||
- bcrypt-password scheme is slow: require long passwords, use faster hashing
|
||||
|
||||
- define user-name and password policies, and implement them
|
||||
|
@ -1,16 +1,17 @@
|
||||
|
||||
import os
|
||||
import time
|
||||
|
||||
import imaplib
|
||||
|
||||
domain = os.environ.get("CHATMAIL_DOMAIN", "c3.testrun.org")
|
||||
|
||||
NUM_CONNECTIONS=10
|
||||
|
||||
conns = []
|
||||
|
||||
start = time.time()
|
||||
for i in range(NUM_CONNECTIONS):
|
||||
print(f"opening connection {i}")
|
||||
conn = imaplib.IMAP4_SSL("c3.testrun.org")
|
||||
print(f"opening connection {i} to {domain}")
|
||||
conn = imaplib.IMAP4_SSL(domain)
|
||||
conns.append(conn)
|
||||
|
||||
tlsdone = time.time()
|
||||
|
Loading…
Reference in New Issue
Block a user