I'm studying the performance of post-quantum KEM in TLS with the OQS (OQS is a project that integrate liboqs to openssl).
I don't know why, but the KEM algorithms performance in TLS is 10 times slower than using the openssl speed command.
For example, Kyber512 takes more or less 2.20 ms to perform the key generation in TLS with the method OQS_KEM_keypair, while with the command openssl takes more or less 0.14 ms in a Raspberry Pi 3B+.
Can someone explain what's wrong? Does the TLS protocol affect in the post-quantum algorithms speed?