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

test/echo 性能差异巨大:x86-64 和 apple m1 差 13 倍 #287

Open
akofer opened this issue Jan 1, 2023 · 4 comments
Open

test/echo 性能差异巨大:x86-64 和 apple m1 差 13 倍 #287

akofer opened this issue Jan 1, 2023 · 4 comments

Comments

@akofer
Copy link

akofer commented Jan 1, 2023

x86-64 ubuntu22.04, cpu intel 14 cores 3.5GHz
image
image

arm64 macosx latest, cpu apple M1 Max 10 cores
image
image

@idealvin
Copy link
Owner

idealvin commented Jan 1, 2023

能找到性能瓶颈在哪里么?测试代码是怎样的?

@akofer
Copy link
Author

akofer commented Jan 1, 2023

代码就是代码库目录 ${coost_root}/test/so/echo.cc,没做改动。top 显示是 95% 的 sys,是卡在系统调用了,用 instruments看了下,recvfrom / sendto 一起耗了 85%,感觉是 blocking call 了,协程化没生效。但是不太熟悉工具和coost的机制,还不能确认。
image

@akofer
Copy link
Author

akofer commented Jan 1, 2023

把符号表打开了,还是比较清楚的都卡在系统调用了。
image

@idealvin
Copy link
Owner

idealvin commented Jan 1, 2023

感谢,我抽空看下

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

2 participants