aws / aws-nitro-enclaves-samples

Provides samples that can help developers get started with Nitro Enclaves.
Apache License 2.0
55 stars 32 forks source link

High latency from parent VM to enclave #21

Open HaseebLUMS opened 6 months ago

HaseebLUMS commented 6 months ago

Hi, I have been looking into the latency (and its variance) between a parent VM and an enclave. The numbers I get (shown below) are almost equal to the numbers I get for a pair of VMs (and sometimes even worse).

For parent to enclave:

Median = 123.839µs 90th: 129.022µs 95th: 132.129µs 99th: 262.755µs Variance: 391.043

For a pair of VMs: Median = 61.3µs 90th: 68.877µs 95th: 73.313µs 99th: 91.53µs Variance: 52.27

I had imagined the latency from parent to enclave to be very low and the variance almost negligible. Do you folks agree with my numbers above or am I doing something wrong?

HaseebLUMS commented 6 months ago

The numbers above show round trip times.