8000 添加linux线程并发测试 · andrewbytecoder/linux-note@2ee20a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ee20a3

Browse files
author
wangyazhou
committed
添加linux线程并发测试
1 parent 9cb6310 commit 2ee20a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

go/go.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,18 @@ To completely disable this security protection add
12401240

12411241

12421242

1243+
## 协程
1244+
linux上基准测试套件,测试相同核心两个线程之间发送消息需要多长时间
1245+
```bash
1246+
taskset -c 0 perf bench sched pipe -T
1247+
```
1248+
因为消息发送需要发送和接收算一次,一次这个时间可以除以2算作一次线程切换的时间
1249+
1250+
1251+
1252+
1253+
1254+
12431255

12441256

12451257
## 文章

0 commit comments

Comments
 (0)
0