hackbench使用

Running

hackbench without any options will give default behaviour,

using fork() and sending data between senders and receivers

via sockets.

user@host: ~ $hackbench

Running in process mode with 10 groups using 40 filedescriptors each (== 400 tasks)

Each sender will pass 100 messages of 100 bytes

Time: 0.890

To use pipes

between senders and receivers and using threads instead of

fork(), run

user@host: ~ $hackbench −−pipe −−threads (orhackbench −p −T)

Running in threaded mode with 10 groups using 40 filedescriptors each (== 400 tasks)

Each sender will pass 100 messages of 100 bytes

Time: 0.497

Set the

datasize to 512 bytes, do 200 messages per sender/receiver

pairs and use 15 groups using 25 file descriptors per child,

in process mode.

user@host: ~ $hackbench −s 512 −l 200 −g 15 −f 25−P

Running in process mode with 15 groups using 50 filedescriptors each (== 750 tasks)

Each sender will pass 200 messages of 512 bytes

Time: 4.497



https://man.cx/hackbench

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,974评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 11,644评论 0 23
  • Lua 5.1 参考手册 by Roberto Ierusalimschy, Luiz Henrique de F...
    苏黎九歌阅读 14,330评论 0 38
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,988评论 0 13
  • 早上6点到群里打卡,早上孝感下雨,星期六在家睡到8点起床才到南方国际店。去店里沟通和中宇卫浴张总合作的事情。发现我...
    31c47a10aded阅读 242评论 0 0

友情链接更多精彩内容