Unixbench——跨平台跑分
发布日期:2021-05-14 08:36:35 浏览次数:22 分类:精选文章

本文共 3285 字,大约阅读时间需要 10 分钟。

UnixBench������������������Unix������������Unix���BSD���Linux������������������������������������������������������Linux������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ UnixBench ���������������������������������

������������

1. Dhrystone 2 (���������������������)

  • ���������������������������������������������CPU���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

2. Double-Precision Whetstone

  • ������������������������������������������������������������������������������������sin���cos���sqrt���exp���log���������������������������������������������������������������������������

3. Execl Throughput

  • ������������������ execl ���������������������������������������������������������������������������������������������������������������������������������������������

4. File Copy

  • ���������������������������������������������������������������������������������������������������������������10������������������������������

5. Pipe Throughput

  • ������������������������������������������512������������������������������������������������������������������������������������������������������������������������������������������������������������

6. Pipe-based Context Switching

  • ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������context���������

7. Process Creation

  • ���������������������������������������������������������������������������������������������������������������������������������������������������������������������

8. System Call Overhead

  • ������������������ getpid ���������������������������������������������������������������������������������������������������

9. Shell Scripts

  • ������������������������������������������������������������������������������������������������n���������1���2���4���8������������������������������������

���������������

���������������

���GitHub������������������������������������������������������������

git clone https://github.com/kdlucas/byte-unixbench.git

������������

  • ARM������������

    sed -i 's/-mtune=native//' Makefile
    sed -i 's/-march=native//' Makefile
    sed -i 's/$field eq "bogomips"/$field eq "bogomips" or $field eq "BogoMIPS"/' Run
  • X86������������ ������������������������������������������������

    make
  • ���������������

    ./Run -c 4 dhry2reg          # CPU ������������������
    ./Run -c 4 whetstone # CPU ���������������������

������������������

���������������������������������������������wget���

  • CentOS���
    yum -y install wget
  • Ubuntu/Debian���
    apt-get -y install wget

������������

������������

wget --no-check-certificate https://github.com/zq/unixbench/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh

������������������������������������������������������������������������������������������������

UnixBench ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

上一篇:Python开发常见漏洞
下一篇:小米2019秋招安全开发笔试题(A)

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年05月04日 22时16分31秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章