plot titles

This commit is contained in:
Pascal Engélibert 2026-02-04 10:31:50 +01:00
commit b9a57aa2e8
3 changed files with 54 additions and 47 deletions

50
exp.py
View file

@ -35,16 +35,16 @@ CONFIGS = {
"local": {
"experiments": [
"impl-cipher-ver",
"impl-cert-ver",
"impl-kex-ver",
#"impl-cert-ver",
#"impl-kex-ver",
],
"setups": [
"none-local",
#"none-local",
"client-local",
"server-local",
#"server-local",
],
"records": [
{ "filename": "youtube", "repeat": 1 },
{ "filename": "wikipedia", "repeat": 50 },
],
"repodir": "/home/tuxmain/reps/tlsbench",
"expdir": "/dev/shm/exp",
@ -53,7 +53,7 @@ CONFIGS = {
"p2_addr": "127.0.0.1",
"p2_repodir": "/home/tuxmain/reps/tlsbench",
"wattmeter": False,
"perf": True,
"perf": False,
"rapl": False,
"perf_dir": "/home/tuxmain/.cache/exp",
"p3_suffix": ".localhost",
@ -64,17 +64,17 @@ CONFIGS = {
"pi3": {
"experiments": [
"impl-cipher-ver",
"impl-cert-ver",
"impl-kex-ver",
"zrtt"
#"impl-cert-ver",
#"impl-kex-ver",
#"zrtt"
],
"setups": [
"none",
#"none",
"client",
"server",
#"server",
],
"records": [
{ "filename": "wikipedia", "repeat": 400 },
{ "filename": "wikipedia", "repeat": 10 },
],
"repodir": "/home/tuxmain/reps/tlsbench",
"expdir": "/dev/shm/exp",
@ -333,11 +333,11 @@ CERT_SIGN_ALGS = [
]
IMPLS = [
"aws_lc", # Amazon's Rust crypto widely used in Rust stuff
"boring", # Google's fork of OpenSSL used in Chrome and Android
"graviola", # New crypto in Rust
"openssl", # widely used
"ring", # used in most Rust stuff
"symcrypt", # Microsoft's crypto
#"boring", # Google's fork of OpenSSL used in Chrome and Android
#"graviola", # New crypto in Rust
#"openssl", # widely used
#"ring", # used in most Rust stuff
#"symcrypt", # Microsoft's crypto
#"wolfcrypt" # used in embedded (won't build with rpxy for now)
]
# Symmetric ciphers
@ -369,12 +369,12 @@ EXPERIMENTS = {
"impl-cipher-ver": {
"impls": IMPLS,
"ciphers": [
"AES_128_GCM_SHA256",
"AES_256_GCM_SHA384",
"CHACHA20_POLY1305_SHA256",
#"AES_128_GCM_SHA256",
#"AES_256_GCM_SHA384",
#"CHACHA20_POLY1305_SHA256",
"ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
#"ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,ECDHE_RSA_WITH_AES_256_GCM_SHA384",
#"ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
],
"kexes": ["X25519"],
"cert": ["prime256v1"],
@ -384,7 +384,7 @@ EXPERIMENTS = {
"impl-cert-ver": {
"impls": IMPLS,
"ciphers": [
"AES_128_GCM_SHA256",
#"AES_128_GCM_SHA256",
"ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,ECDHE_RSA_WITH_AES_128_GCM_SHA256",
],
"kexes": ["X25519"],
@ -690,10 +690,10 @@ def make_rpxy_config(outdir, domains, cryptodir, config_name, p3_suffix, p3_port
f.close()
def make_everything(expdir, domains, make_ca, config_only, p3_suffix, p3_port_plain, p3_port_tls):
if expdir[-1] != "/":
expdir += "/"
if not config_only:
os.makedirs(expdir, exist_ok=True)
if expdir[-1] != "/":
expdir += "/"
for alg in CERT_SIGN_ALGS:
algdir = expdir+"certs/"+alg
os.makedirs(algdir, exist_ok=True)