nt-test
node test
Last updated 4 years ago by donghanji .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nt-test 
SYNC missed versions from official npm registry.

nt-test

node request/response test

#First,

npm install nt-test -g

#Second

nt -h
to see command help

#Third,

nt init
to init,create data and log file in current directory

#Fourth,

nt data -s 10
to create response data,size * 1k,
if < 1,like 0.2,will size * 100 * 10b,
will create a 10.data file in ./data directory.

#Fifth,

nt res -s 10
to create a response,you will to see help,like this
nt res -h
more,

  nt res
  -p:port,default 3030
  -m:multi,multi process,default false,input cpus number
  -s:size:response data size,which is in ./data:
    0:”hello word"
    100:100k
    200:200k
    500:500k
    1000:1000k
    10000:10000k

#Sixth,

nt req -m 2 -s 1000
to create a request ,by multi process,space is 1000ms.to see help,like this
nt req -h
more,

nt req
  -h:host,server host, default 127.0.0.1
  -p:port,server port, default 3030
  -c:count,request count ,defualt 1
  -w:way,request way, default http,now only
  -m:method,request method, default get
  -s:space,request space time, default 100ms

#Seventh

nt clear
to clear log files ,in ./log/*

Current Tags

  • 1.0.7                                ...           latest (4 years ago)

8 Versions

  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |