今天去node.js官网下载到了一份tar.xz结尾的压缩安装包文件,一时不知道如何加压.经过检索,找到方法如下:

 

$xz -d ***.tar.xz  #这里将.tar.xz加压成.tar

$tar -xvf  ***.tar   #解压



````

ab -n 10000 -c 1000 http://admin.xiaodou.com:9501/api/index/demo
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking admin.xiaodou.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        swoole-http-server
Server Hostname:        admin.xiaodou.com
Server Port:            9501

Document Path:          /api/index/demo
Document Length:        186 bytes

Concurrency Level:      1000
Time taken for tests:   3.851 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      3630000 bytes
HTML transferred:       1860000 bytes
Requests per second:    2597.02 [#/sec] (mean)
Time per request:       385.057 [ms] (mean)
Time per request:       0.385 [ms] (mean, across all concurrent requests)
Transfer rate:          920.62 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  138 240.3     83    1252
Processing:     3  198 105.9    179     525
Waiting:        3  165  96.4    149     520
Total:         13  337 260.4    293    1462

Percentage of the requests served within a certain time (ms)
  50%    293
  66%    347
  75%    391
  80%    416
  90%    484
  95%   1279
  98%   1334
  99%   1353
 100%   1462 (longest request)
````