Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance overhead #379

Open
4ncly opened this issue Apr 26, 2022 · 3 comments
Open

performance overhead #379

4ncly opened this issue Apr 26, 2022 · 3 comments

Comments

@4ncly
Copy link

4ncly commented Apr 26, 2022

i implement a rust program in sgx with rust sgx sdk, but i find that it cost more than 60%-80% time to execute program, is this normal?

@mssun
Copy link
Member

mssun commented Apr 26, 2022

Hi, can you also put the code, testbed, and how you measure the overhead? This will be very helpful when discussing the performance overhead.

@qinkunbao
Copy link
Member

My experience (could be wrong)

  1. If a program is CPU-intensive, the average overhead is 30% to 50%
  2. If a program uses main memory a lot (e.g., the size of allocated memory is larger than the EPC size), the program may have thousands of performance penalties.

@4ncly
Copy link
Author

4ncly commented Apr 28, 2022

thank you very much, I find that my program needs multithreading optimization and sgx does't support that lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants