跳至主要內容

Online stress testing tool - Programmer's Tool Network

   This paper to recommend [ToolFk] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   BarCode Barcode generated online ,  QueryList collector ,  PHP code is run online ,  PHP confusion, encryption, decryption ,  Python code is run online JavaScript online operation ,YAML formatting tools , HTTP simulation query tool HTML online toolbox JavaScript online Toolbox ,CSS online toolbox JSON online toolbox unixtime timestamp conversion Base64 / the URL of / native2ascii conversion CSV conversion kit XML online toolbox the WebSocket online tools Markdown online toolbox Htaccess2nginx conversionHex conversion online online encryption toolkit ,online pseudo-original tools online APK decompile online web screenshot tool online random password generation online generate two-dimensional code qrcode online Crontab Expression Builder ,the online short URL Generator Online calculator tool , Linux common commands Daquan , online text comparison tool , online mind mapping tools , online database design tool , free CDN acceleration service , online stress test tool And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox.

Site name: ToolFk
website links: https://www.toolfk.com/
Tools link: https://www.toolfk.com/tool-online-bench

? Teaching Code

This tool [Online stress testing tool]?-Dependent code base is https://github.com/rakyll/hey
STEP 1

STEP 2
? THE CORE CODE IS AS FOLLOWS
 # -N Number of requests to run. Default is 200.
 $ Number_n = intval (request ( 'n', 200));
 $ Number_n = $ number_n> 10000 10000: $ number_n;?
 $ Number_n = $ number_n <10 10: $ number_n;?

 . $ Cmd = "-n {$ number_n}";

 # -C Number of requests to run concurrently. Total number of requests can not be smaller than the concurrency level. Default is 50.
 $ Number_c = intval (request ( 'c', 50));
 $ Number_c = $ number_c> 1000 1000: $ number_c;?
 ? $ Number_c = $ number_c <10 10: $ number_c;
 $ Cmd = "-c {$ number_c}".;

 #Rate limit, in queries per second (QPS). Default is no rate limit. (Rate limiting)
 $ Number_q = intval (request ( 'q', 0));
 $ Number_q = $ number_q> 1000 1000: $ number_q;?
 ? $ Number_q = $ number_q <0 0: $ number_q;
 if ($ number_q) {
     $ Cmd = "-q {$ number_q}".;
 }


 # -Z how long execution time
 $ Number_z = intval (request ( 'z', 0)); // 10s, 3m
 $ Number_z = $ number_z> 60 60: $ number_z; # up to 60s?
 ? $ Number_z = $ number_z <0 0: $ number_z;
 if ($ number_z) {
     . $ Cmd = "-z {$ number_z}";
 }

 # -M HTTP method, one of GET, POST, PUT, DELETE, HEAD, OPTIONS.
 $ Number_m = request ( 'm', 'GET'); // GET, POST
 if (! in_array ($ number_m, [ "GET", "POST"])) {
     $ Number_m = "GET";
 }

 . $ Cmd = "-m {$ number_m}";


 # -T Timeout for each request in seconds. Default is 20, use 0 for infinite.
 $ Number_t = intval (request ( 't', 20));
 $ Number_t = $ number_t> 60 60: $ number_t; # up to 60s?
 ? $ Number_t = $ number_t <0 0: $ number_t;

 if ($ number_t) {
     . $ Cmd = "-t {$ number_t}";
 }


 # -T Content-type, defaults to "text / html".
 $ Number_T = request ( 'T', "text / html");
 if (! in_array ($ number_T, [ "text / html", "application / json", "multipart / form-data"])) {
     $ Number_T = "text / html";
 }

 $ Cmd = "-T {$ number_T}".;


 # -D HTTP request body.
 $ Number_d = request ( 'd');
 if ($ number_m == "POST") {
     . $ Cmd = "-d {$ number_d}";
 }

// \ App \ Helper \ UtilsHelper :: log_debug ( "CMD", $ cmd);
 . $ Cmd = "2> & 1";
 $ Content = shell_exec ($ cmd);

留言

此網誌的熱門文章

BASE64-line encryption and decryption, UrlEncode encoding / decoding, native / ascii online conversion tool - toolfk online Programmer toolbox

   This paper to recommend [ToolFk] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results. ToolFk also supports    BarCode Barcode generated online  ,   QueryList collector  ,   PHP code is run online  ,   PHP confusion, encryption, decryption  ,   Python code is run online  ,  JavaScript online operation  , YAML formatting tools  ,  HTTP simulation query tool  ,  HTML online toolbox  ,  JavaScript online Toolbox  , CSS online toolbox  ,  JSON online toolbox  ,  unixtime timestamp conversion  ,  Base64 / the URL of / native2ascii conversion  ,  CSV conversion kit  ,  XML online toolbox  ,...

Use Docker achieve Python3.5, Python2.7-line programming tool to execute code test -toolfk online Programmer toolbox

  This paper to recommend [ToolFk] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results. ToolFk also supports    BarCode Barcode generated online  ,   QueryList collector  ,   PHP code is run online  ,   PHP confusion, encryption, decryption  ,   Python code is run online  ,  JavaScript online operation  , YAML formatting tools  ,  HTTP simulation query tool  ,  HTML online toolbox  ,  JavaScript online Toolbox  , CSS online toolbox  ,  JSON online toolbox  ,  unixtime timestamp conversion  ,  Base64 / the URL of / native2ascii conversion  ,  CSV conversion kit  ,  XML online toolbox  ,  the...

YAML, YML online editor (format check) analysis tool -toolfk online Programmer toolbox

     This paper to recommend [ToolFk] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results. ToolFk also supports    BarCode Barcode generated online  ,   QueryList collector  ,   PHP code is run online  ,   PHP confusion, encryption, decryption  ,   Python code is run online  ,  JavaScript online operation  , YAML formatting tools  ,  HTTP simulation query tool  ,  HTML online toolbox  ,  JavaScript online Toolbox  , CSS online toolbox  ,  JSON online toolbox  ,  unixtime timestamp conversion  ,  Base64 / the URL of / native2ascii conversion  ,  CSV conversion kit  ,  XML online toolbox...