{"id":5254,"date":"2017-02-11T00:01:41","date_gmt":"2017-02-10T15:01:41","guid":{"rendered":"http:\/\/www.magtranetwork.com\/?p=5254"},"modified":"2018-02-08T20:56:19","modified_gmt":"2018-02-08T11:56:19","slug":"unixbench_installer","status":"publish","type":"post","link":"https:\/\/www.magtranetwork.com\/aws\/unixbench_installer.html","title":{"rendered":"Linux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067CPU\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c4\u30fc\u30eb\u300cUnixBench\u300d\u3092\u5fc5\u8981\u30d1\u30c3\u30b1\u30fc\u30b8\u3054\u3068\u4e00\u62ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0) \uff5eRHEL\u3001CentOS\u3001Fedora\u3001Ubuntu\u3001macOS\u3001Cygwin\u306a\u3069\u306b\u5bfe\u5fdc\u3057\u305fCPU\u6027\u80fd\u8a55\u4fa1\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\uff5e"},"content":{"rendered":"
Linux\u3084macOS\u306a\u3069\u306e\u6027\u80fd\u3092\u6bd4\u8f03\u3059\u308b\u5834\u5408\u306b\u306f\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c4\u30fc\u30eb\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u304c\u3001\u5e83\u304f\u591a\u7a2e\u985e\u306eOS\u3067\u4f7f\u7528\u3067\u304d\u306a\u3051\u308c\u3070\u540c\u3058\u57fa\u6e96\u3067\u6027\u80fd\u8a55\u4fa1\u3092\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n
\u7279\u306b\u6700\u8fd1\u3067\u306fCPU\u306e\u30de\u30eb\u30c1\u30b3\u30a2\u306b\u3088\u308b\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u51e6\u7406(\u8907\u6570\u540c\u6642\u51e6\u7406)\u304c\u4e00\u822c\u7684\u306b\u306a\u3063\u3066\u304d\u3066\u304a\u308a\u3001\u5358\u7d14\u306b\u30af\u30ed\u30c3\u30af\u5468\u6ce2\u6570\u306e\u6570\u5024\u3060\u3051\u3067\u306f\u6027\u80fd\u8a55\u4fa1\u304c\u96e3\u3057\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n
\u305d\u306e\u3088\u3046\u306a\u30de\u30eb\u30c1\u30b3\u30a2\u306b\u3082\u5bfe\u5fdc\u3057\u3001Linux\u3001macOS\u3001Cygwin(Windows)\u306a\u3069\u306eUnix\u7cfbOS\u3067\u5e45\u5e83\u304f\u4f7f\u7528\u3067\u304d\u308bCPU\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30bd\u30d5\u30c8\u306b\u300cUnixBench\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n
\u4eca\u56de\u306fUnix\u7cfbOS\u306eCPU\u6027\u80fd\u8a55\u4fa1\u306b\u6d3b\u7528\u3067\u304d\u308b\u300cUnixBench\u300d\u3092RHEL\u3001CentOS\u3001Fedora\u3001Ubuntu\u3001macOS\u3001Cygwin\u306b\u5fc5\u8981\u30e2\u30b8\u30e5\u30fc\u30eb\u3082\u542b\u3081\u3001\u4e00\u62ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n
\u4e00\u62ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u7d39\u4ecb\u306e\u524d\u306bUnixBench\u3067\u6e2c\u5b9a\u3067\u304d\u308b\u4e3b\u306a\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n
\u6574\u6570\u6f14\u7b97\u51e6\u7406\u306e\u53e4\u5178\u7684\u306a\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c6\u30b9\u30c8Dhrystone\u3092\u7528\u3044\u3066\u3001CPU\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f1\u79d2\u9593\u306e\u51e6\u7406\u56de\u6570\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n
\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u6f14\u7b97\u51e6\u7406\u306e\u53e4\u5178\u7684\u306a\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c6\u30b9\u30c8Whetstone\u3092\u7528\u3044\u3066\u3001\u6570\u5024\u6f14\u7b97\u306e\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f1\u79d2\u9593\u306e\u51e6\u7406\u547d\u4ee4\u6570\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n
\u30d7\u30ed\u30bb\u30b9\u30a4\u30e1\u30fc\u30b8\u3092\u7f6e\u304d\u63db\u3048\u308bexecl\u95a2\u6570\u3092\u7528\u3044\u3066\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u51e6\u7406\u6027\u80fd(OS\u30fbCPU\u306e\u51e6\u7406\u6027\u80fd)\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f1\u79d2\u9593\u306e\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u51e6\u7406\u56de\u6570\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n
2MB\u306e\u30d5\u30a1\u30a4\u30eb\u30921024Byte\u6bce\u306b\u51e6\u7406\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u3068\u8aad\u307f\u8fbc\u307f\u3092\u7e70\u308a\u8fd4\u3059\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3067\u30d5\u30a1\u30a4\u30eb\u30b3\u30d4\u30fc\u901f\u5ea6\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u203bCPU\u3001\u30e1\u30e2\u30ea\u4e0a\u3078\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6e2c\u5b9a\u306b\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001CPU\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3059\u308b\u3053\u3068\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f1\u79d2\u9593\u306e\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u5bb9\u91cf(KB)\u3067\u3059\u3002<\/p>\n
0.5MB\u306e\u30d5\u30a1\u30a4\u30eb\u3092256Byte\u6bce\u306b\u51e6\u7406\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u3068\u8aad\u307f\u8fbc\u307f\u3092\u7e70\u308a\u8fd4\u3059\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3067\u30d5\u30a1\u30a4\u30eb\u30b3\u30d4\u30fc\u901f\u5ea6\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u203bCPU\u3001\u30e1\u30e2\u30ea\u4e0a\u3078\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6e2c\u5b9a\u306b\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001CPU\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3059\u308b\u3053\u3068\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f1\u79d2\u9593\u306e\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u5bb9\u91cf(KB)\u3067\u3059\u3002<\/p>\n
8MB\u306e\u30d5\u30a1\u30a4\u30eb\u30924096Byte\u6bce\u306b\u51e6\u7406\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u3068\u8aad\u307f\u8fbc\u307f\u3092\u7e70\u308a\u8fd4\u3059\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3067\u30d5\u30a1\u30a4\u30eb\u30b3\u30d4\u30fc\u901f\u5ea6\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u203bCPU\u3001\u30e1\u30e2\u30ea\u4e0a\u3078\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6e2c\u5b9a\u306b\u5f71\u97ff\u3059\u308b\u305f\u3081\u3001CPU\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3059\u308b\u3053\u3068\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f1\u79d2\u9593\u306e\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u5bb9\u91cf(KB)\u3067\u3059\u3002<\/p>\n
512Byte\u5358\u4f4d\u3067\u30c7\u30fc\u30bf\u3092\u7e70\u308a\u8fd4\u3057\u30d1\u30a4\u30d7\u51e6\u7406\u3059\u308b\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u3092\u8a08\u6e2c\u3057\u3066CPU\u30fbOS\u306e\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f\u30d1\u30a4\u30d7\u51e6\u7406\u56de\u6570\u3067\u3059\u3002<\/p>\n
\u30d7\u30ed\u30bb\u30b9\u9593\u901a\u4fe1\u3067\u66f4\u65b0\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u30d1\u30a4\u30d7\u51e6\u7406\u3059\u308b\u969b\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30b9\u30a4\u30c3\u30c1\u30f3\u30b0\u3067CPU\u30fbOS\u306e\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f\u30d1\u30a4\u30d7\u51e6\u7406\u56de\u6570\u3067\u3059\u3002<\/p>\n
\u30d7\u30ed\u30bb\u30b9\u306e\u30d5\u30a9\u30fc\u30af\u3092\u7e70\u308a\u8fd4\u3059\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3067CPU\u30fbOS\u306e\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f\u30d5\u30a9\u30fc\u30af\u51e6\u7406\u56de\u6570\u3067\u3059\u3002<\/p>\n
\u30d7\u30ed\u30bb\u30b9ID\u3092\u8fd4\u5374\u3059\u308bgetpid\u95a2\u6570\u3092\u7528\u3044\u3066\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u51e6\u7406\u6027\u80fd(OS\u30fbCPU\u306e\u51e6\u7406\u6027\u80fd)\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f1\u79d2\u9593\u306e\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u51e6\u7406\u56de\u6570\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n
\u30b7\u30a7\u30eb(\/bin\/sh)\u3067sort, od, grep, tee, wc, rm\u30b3\u30de\u30f3\u30c9\u3001\u30d1\u30a4\u30d7\u30fb\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u3092\u884c\u3046\u30c6\u30b9\u30c8\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u30921\u500b\u30eb\u30fc\u30d7\u5b9f\u884c\u3057\u3066CPU\u30fbOS\u306e\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u56de\u6570\u3067\u3059\u3002<\/p>\n
\u30b7\u30a7\u30eb(\/bin\/sh)\u3067sort, od, grep, tee, wc, rm\u30b3\u30de\u30f3\u30c9\u3001\u30d1\u30a4\u30d7\u30fb\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u3092\u884c\u3046\u30c6\u30b9\u30c8\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u30928\u500b\u540c\u6642\u306b\u30eb\u30fc\u30d7\u5b9f\u884c\u3057\u3066CPU\u30fbOS\u306e\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u56de\u6570\u3067\u3059\u3002<\/p>\n
\u30b7\u30a7\u30eb(\/bin\/sh)\u3067sort, od, grep, tee, wc, rm\u30b3\u30de\u30f3\u30c9\u3001\u30d1\u30a4\u30d7\u30fb\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u51e6\u7406\u3092\u884c\u3046\u30c6\u30b9\u30c8\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u309216\u500b\u540c\u6642\u306b\u30eb\u30fc\u30d7\u5b9f\u884c\u3057\u3066CPU\u30fbOS\u306e\u51e6\u7406\u6027\u80fd\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002
\n\u7d50\u679c\u6570\u5024\u306f\u30eb\u30fc\u30d7\u51e6\u7406\u56de\u6570\u3067\u3059\u3002<\/p>\n<\/ul>\n
\u57fa\u672c\u65b9\u91dd\u3068\u3057\u3066\u306f\u5404OS\u306b\u5408\u308f\u305b\u3066UnixBench\u306e\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001UnixBench\u3084\u30d1\u30c3\u30c1\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30d3\u30eb\u30c9\u3057\u3001\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n
\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u51e6\u7406\u306e\u6d41\u308c\u3068\u3057\u3066\u306f\u3001\u307e\u305aOS\u306b\u5408\u308f\u305b\u305f\u30b3\u30de\u30f3\u30c9\u3067\u5fc5\u8981\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n
Linux\u306e\u3046\u3061RHEL\u3001CentOS\u3001Fedora\u306a\u3069yum\u30b3\u30de\u30f3\u30c9\u304c\u5b58\u5728\u3059\u308c\u3070yum\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001yum\u30b3\u30de\u30f3\u30c9\u304c\u306a\u3051\u308c\u3070dnf\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8a66\u307f\u307e\u3059\u3002
\n\u203bFedora 22\u3067yum\u30b3\u30de\u30f3\u30c9\u306f\u5ec3\u6b62\u3068\u306a\u308adnf\u30b3\u30de\u30f3\u30c9\u304c\u63a1\u7528\u3055\u308c\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u5c06\u6765\u7684\u306bRHEL8\u3001CentOS8\u306a\u3069\u3067\u3082yum\u30b3\u30de\u30f3\u30c9\u304c\u5ec3\u6b62\u3055\u308c\u3001dnf\u30b3\u30de\u30f3\u30c9\u304c\u63a1\u7528\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u975e\u5e38\u306b\u9ad8\u3044\u3067\u3059\u3002<\/p>\n
Linux\u306e\u3046\u3061Ubuntu\u306a\u3069apt-get\u30b3\u30de\u30f3\u30c9\u304c\u5b58\u5728\u3059\u308c\u3070apt-get\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n
\u307e\u305f\u3001macOS\u306f\u5c02\u7528\u306e\u30d1\u30c3\u30c1\u3092\u5f53\u3066\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u30d1\u30c3\u30c1\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n
UnixBench\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u306f\u300c.\/Run -i 5 pipe\u300d\u3067CPU\u306ePipe Throughput\u306e\u307f\u3092\u8a08\u6e2c\u3057\u307e\u3059\u3002<\/p>\n
\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u300c.\/Run -i 5 pipe\u300d\u306e\u5f15\u6570\u90e8\u5206\u3092\u81ea\u5206\u306e\u597d\u304d\u306a\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u540d\u306b\u5909\u66f4\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n
\u5168\u3066\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u300c.\/Run\u300d\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5168\u3066\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306e\u8a08\u6e2c\u306b\u306f\u304b\u306a\u308a\u306e\u6642\u9593\u3092\u8981\u3057\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n
\u521d\u56de\u306eUnixBench\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4ee5\u964d\u306f\u8a08\u6e2c\u30b3\u30de\u30f3\u30c9\u306e\u307f\u3092\u5b9f\u884c\u3059\u308b\u306e\u3067\u7e70\u308a\u8fd4\u3057\u3066\u4f7f\u7528\u3059\u308b\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n
\r\n[root@localhost ~]# vim unixbench_installer_and_run.sh\r\n<\/pre>\n\r\n#!\/bin\/bash\r\n\r\n#UnixBench\u3092\u914d\u7f6e\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\r\nUNIX_BENCH_DIR=\/usr\/local\r\n\r\ncd ${UNIX_BENCH_DIR}\/\r\n\r\nif [ ! -d ${UNIX_BENCH_DIR}\/UnixBench ]; then\r\n\r\n if [ "$(uname)" == 'Darwin' ]; then\r\n echo "OS: Mac"\r\n #macOS\u306e\u5834\u5408\u3001\u5fc5\u8981\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308c\u3070\u3053\u3053\u306bbrew\u306a\u3069\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8f09\u3059\u308b\u3002\r\n elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then\r\n echo "OS: Linux"\r\n\r\n #RHEL, CentOS, Fedora\u306e\u5834\u5408\r\n which yum > \/dev\/null 2>&1\r\n IS_PKG=$?\r\n IS_PKG=`echo "${IS_PKG}" | sed 's\/ \/\/g' | sed 's\/\\t\/\/g' | tr -d '\\n'`\r\n if [ "${IS_PKG}" = "0" ]; then\r\n yum install -y gcc make perl perl-Time-HiRes\r\n else\r\n #yum\u30b3\u30de\u30f3\u30c9\u304c\u5ec3\u6b62\u3055\u308c\u3066\u3044\u308c\u3070dnf\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\r\n which dnf > \/dev\/null 2>&1\r\n IS_PKG=$?\r\n IS_PKG=`echo "${IS_PKG}" | sed 's\/ \/\/g' | sed 's\/\\t\/\/g' | tr -d '\\n'`\r\n if [ "${IS_PKG}" = "0" ]; then\r\n dnf install -y gcc make perl perl-Time-HiRes\r\n fi\r\n fi\r\n\r\n #Ubuntu\u306e\u5834\u5408\r\n which apt-get > \/dev\/null 2>&1\r\n IS_PKG=$?\r\n IS_PKG=`echo "${IS_PKG}" | sed 's\/ \/\/g' | sed 's\/\\t\/\/g' | tr -d '\\n'`\r\n if [ "${IS_PKG}" = "0" ]; then\r\n apt-get install -y libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules make gcc\r\n fi\r\n elif [ "$(expr substr $(uname -s) 1 9)" == 'CYGWIN_NT' ]; then\r\n echo "OS: Cygwin"\r\n #Cygwin\u306e\u5834\u5408\u3001\u5fc5\u8981\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308c\u3070\u3053\u3053\u306bapt-cyg\u306a\u3069\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8f09\u3059\u308b\u3002\r\n fi\r\n\r\n curl -k -L -O https:\/\/storage.googleapis.com\/google-code-archive-downloads\/v2\/code.google.com\/byte-unixbench\/UnixBench5.1.3.tgz\r\n\r\n tar xvzf UnixBench5.1.3.tgz\r\n rm -f UnixBench5.1.3.tgz\r\n\r\n #macOS\u306e\u5834\u5408\u306f\u30d1\u30c3\u30c1\u3092\u9069\u7528\u3059\u308b\u3002\r\n if [ "$(uname)" == 'Darwin' ]; then\r\n cd ${UNIX_BENCH_DIR}\/UnixBench\/\r\n curl -k -L -O https:\/\/gist.github.com\/barusan\/11033924\/archive\/a4f8041dd651ba14b03710b383b9b8a194c323fb.zip\r\n unzip a4f8041dd651ba14b03710b383b9b8a194c323fb.zip\r\n patch -p1 < .\/a4f8041dd651ba14b03710b383b9b8a194c323fb\/UnixBench5.1.3.mavericks.patch\r\n make\r\n rm -rf a4f8041dd651ba14b03710b383b9b8a194c323fb.zip\r\n fi\r\nfi\r\n\r\ncd ${UNIX_BENCH_DIR}\/UnixBench\/\r\nchmod 755 .\/Run\r\nchmod 755 .\/kill_run\r\n\r\n#\u5168\u3066\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\r\n#.\/Run\r\n\r\n#\u7c21\u6613\u30c6\u30b9\u30c8\u3068\u3057\u3066CPU\u306ePipe Throughput\u306e\u307f\u30925\u56de\u5b9f\u884c\r\n.\/Run -i 5 pipe\r\n\r\n<\/pre>\nLinux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067CPU\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c4\u30fc\u30eb\u300cUnixBench\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u5b9f\u884c\u4f8b<\/h3>\n
\u300c.\/Run -i 5 pipe\u300d\u306e\u5b9f\u884c\u3067\u306f\u6570\u5206\u7a0b\u5ea6\u306e\u77ed\u6642\u9593\u3067CPU\u6027\u80fd\u304c\u7c21\u6613\u6e2c\u5b9a\u3067\u304d\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n
\r\n[root@localhost ~]# chmod 755 unixbench_installer_and_run.sh\r\n[root@localhost ~]# .\/unixbench_installer_and_run.sh\r\n # # # # # # # ##### ###### # # #### # #\r\n # # ## # # # # # # # ## # # # # #\r\n # # # # # # ## ##### ##### # # # # ######\r\n # # # # # # ## # # # # # # # # #\r\n # # # ## # # # # # # # ## # # # #\r\n #### # # # # # ##### ###### # # #### # #\r\n\r\n Version 5.1.3 Based on the Byte Magazine Unix Benchmark\r\n\r\n Multi-CPU version Version 5 revisions by Ian Smith,\r\n Sunnyvale, CA, USA\r\n January 13, 2011 johantheghost at yahoo period com\r\n\r\n\r\n1 x Pipe Throughput 1 2 3 4 5\r\n\r\n4 x Pipe Throughput 1 2 3 4 5\r\n\r\n========================================================================\r\n BYTE UNIX Benchmarks (Version 5.1.3)\r\n\r\n System: webserver-gce: GNU\/Linux\r\n OS: GNU\/Linux -- 3.10.0-693.11.1.el7.x86_64 -- #1 SMP Mon Dec 4 23:52:40 UTC 2017\r\n Machine: x86_64 (x86_64)\r\n Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")\r\n CPU 0: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0 bogomips)\r\n Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER\/SYSEXIT, SYSCALL\/SYSRET\r\n CPU 1: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0 bogomips)\r\n Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER\/SYSEXIT, SYSCALL\/SYSRET\r\n CPU 2: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0 bogomips)\r\n Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER\/SYSEXIT, SYSCALL\/SYSRET\r\n CPU 3: Intel(R) Xeon(R) CPU @ 2.20GHz (4400.0 bogomips)\r\n Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER\/SYSEXIT, SYSCALL\/SYSRET\r\n 10:11:58 up 14:40, 1 user, load average: 0.68, 0.60, 0.37; runlevel 3\r\n\r\n------------------------------------------------------------------------\r\nBenchmark Run: \u91d1 12\u6708 08 2017 10:11:58 - 10:13:03\r\n4 CPUs in system; running 1 parallel copy of tests\r\n\r\nPipe Throughput 1923370.9 lps (10.0 s, 4 samples)\r\n\r\nSystem Benchmarks Partial Index BASELINE RESULT INDEX\r\nPipe Throughput 12440.0 1923370.9 1546.1\r\n ========\r\nSystem Benchmarks Index Score (Partial Only) 1546.1\r\n\r\n------------------------------------------------------------------------\r\nBenchmark Run: \u91d1 12\u6708 08 2017 10:13:03 - 10:14:09\r\n4 CPUs in system; running 4 parallel copies of tests\r\n\r\nPipe Throughput 6529801.6 lps (10.0 s, 4 samples)\r\n\r\nSystem Benchmarks Partial Index BASELINE RESULT INDEX\r\nPipe Throughput 12440.0 6529801.6 5249.0\r\n ========\r\nSystem Benchmarks Index Score (Partial Only) 5249.0\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Linux\u3084macOS\u306a\u3069\u306e\u6027\u80fd\u3092\u6bd4\u8f03\u3059\u308b\u5834\u5408\u306b\u306f\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c4\u30fc\u30eb\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u304c\u3001\u5e83\u304f\u591a\u7a2e\u985e\u306eOS\u3067\u4f7f\u7528\u3067\u304d\u306a\u3051\u308c\u3070\u540c\u3058\u57fa\u6e96\u3067\u6027\u80fd\u8a55\u4fa1\u3092\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002 \u7279\u306b\u6700\u8fd1\u3067\u306fCPU\u306e\u30de\u30eb\u30c1\u30b3\u30a2\u306b\u3088\u308b\u30de\u30eb\u30c1\u30b9\u30ec […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3,22,79,82],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5254"}],"collection":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/comments?post=5254"}],"version-history":[{"count":9,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5254\/revisions"}],"predecessor-version":[{"id":6986,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5254\/revisions\/6986"}],"wp:attachment":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/media?parent=5254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/categories?post=5254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/tags?post=5254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}