contrib/mtlsbenchmark/readme.md
A testing framework for benchmarking TLS performance in peer-to-peer network scenarios
Generate the required certificate files:
ca_file.crt - Certificate Authority filecertificate_file.crt - Server/Client certificatekey_file.key - Private key fileReferences:
The test scripts support two unit tests that can be configured:
| Test Mode | Purpose | Configuration (set by -f) |
|---|---|---|
| Long Running | Testing with connections and messages | :/network/p2ptest |
| One Shot | One-time connection only and no message | :/network/p2poneshottest |
Set the desired test mode in your script before running.
.
├── server.sh # Server startup script
├── client.sh # Client startup script
└── keys
├── ca_file.crt # Certificate Authority (generated)
├── certificate_file.crt # TLS Certificate (generated)
└── key_file.key # Private Key (generated)
bash server.sh
bash client.sh
Note: You can start multiple clients for load testing scenarios.