refine measure script, update plan

This commit is contained in:
holger krekel
2023-10-15 19:03:38 +02:00
parent a0e1d9e4d7
commit 26e4e1d9be
2 changed files with 5 additions and 8 deletions

View File

@@ -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

View File

@@ -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()