8000 node-http-proxy/benchmark at proxy-req-error · CedarLogic/node-http-proxy · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"benchmark","repo":{"id":61451397,"defaultBranch":"master","name":"node-http-proxy","ownerLogin":"CedarLogic","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2016-06-18T20:32:39.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/2249049?v=4","public":true,"private":false,"isOrgOwned":true},"currentUser":null,"refInfo":{"name":"proxy-req-error","listCacheKey":"v0:1628949342.3323462","canEdit":false,"refType":"branch","currentOid":"8a60ca43fb554795acf0243f0902cb599d54a942"},"tree":{"items":[{"name":"scripts","path":"benchmark/scripts","contentType":"directory"},{"name":"README.md","path":"benchmark/README.md","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eBenchmarking \u003ccode\u003enode-http-proxy\u003c/code\u003e\u003c/h1\u003e\u003ca id=\"user-content-benchmarking-node-http-proxy\" class=\"anchor\" aria-label=\"Permalink: Benchmarking node-http-proxy\" href=\"#benchmarking-node-http-proxy\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe long-term goal of these scripts and documentation is to provide a consistent and well understood benchmarking process for \u003ccode\u003enode-http-proxy\u003c/code\u003e so that performance does not degrade over time. They were initially created to compare the performance of \u003ccode\u003ev0.10.3\u003c/code\u003e and \u003ccode\u003ev1.0.0\u003c/code\u003e (which was a significant rewrite).\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePre-requisites\u003c/h2\u003e\u003ca id=\"user-content-pre-requisites\" class=\"anchor\" aria-label=\"Permalink: Pre-requisites\" href=\"#pre-requisites\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eAll benchmarking shall be done with \u003ca href=\"https://github.com/wg/wrk\"\u003ewrk\u003c/a\u003e which \u003cem\u003eis the same tool used for performance testing by the node.js core team.\u003c/em\u003e \u003cstrong\u003eMake sure you have \u003ccode\u003ewrk\u003c/code\u003e installed before continuing\u003c/strong\u003e.\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ wrk\nUsage: wrk \u0026lt;options\u0026gt; \u0026lt;url\u0026gt; \n Options: \n -c, --connections \u0026lt;N\u0026gt; Connections to keep open \n -d, --duration \u0026lt;T\u0026gt; Duration of test \n -t, --threads \u0026lt;N\u0026gt; Number of threads to use \n \n -s, --script \u0026lt;S\u0026gt; Load Lua script file \n -H, --header \u0026lt;H\u0026gt; Add header to request \n --latency Print latency statistics \n --timeout \u0026lt;T\u0026gt; Socket/request timeout \n -v, --version Print version details \n \n Numeric arguments may include a SI unit (1k, 1M, 1G)\n Time arguments may include a time unit (2s, 2m, 2h)\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e$ wrk\nUsage: wrk \u0026lt;options\u0026gt; \u0026lt;url\u0026gt; \n Options: \n -c, --connections \u0026lt;N\u0026gt; Connections to keep open \n -d, --duration \u0026lt;T\u0026gt; Duration of test \n -t, --threads \u0026lt;N\u0026gt; Number of threads to use \n \n -s, --script \u0026lt;S\u0026gt; Load Lua script file \n -H, --header \u0026lt;H\u0026gt; Add header to request \n --latency Print latency statistics \n --timeout \u0026lt;T\u0026gt; Socket/request timeout \n -v, --version Print version details \n \n Numeric arguments may include a SI unit (1k, 1M, 1G)\n Time arguments may include a time unit (2s, 2m, 2h)\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eBenchmarks\u003c/h2\u003e\u003ca id=\"user-content-benchmarks\" class=\"anchor\" aria-label=\"Permalink: Benchmarks\" href=\"#benchmarks\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#simple-http\"\u003eSimple HTTP benchmark\u003c/a\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSimple HTTP\u003c/h3\u003e\u003ca id=\"user-content-simple-http\" class=\"anchor\" aria-label=\"Permalink: Simple HTTP\" href=\"#simple-http\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003cem\u003eThis benchmark requires three terminals running:\u003c/em\u003e\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\u003cstrong\u003eA proxy server:\u003c/strong\u003e \u003ccode\u003enode benchmark/scripts/proxy.js\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eA target server:\u003c/strong\u003e \u003ccode\u003enode benchmark/scripts/hello.js\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eA wrk process:\u003c/strong\u003e \u003ccode\u003ewrk -c 20 -d5m -t 2 http://127.0.0.1:8000\u003c/code\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Benchmarking node-http-proxy","anchor":"benchmarking-node-http-proxy","htmlText":"Benchmarking node-http-proxy"},{"level":2,"text":"Pre-requisites","anchor":"pre-requisites","htmlText":"Pre-requisites"},{"level":2,"text":"Benchmarks","anchor":"benchmarks","htmlText":"Benchmarks"},{"level":3,"text":"Simple HTTP","anchor":"simple-http","htmlText":"Simple HTTP"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FCedarLogic%2Fnode-http-proxy%2Ftree%2Fproxy-req-error%2Fbenchmark"}},"totalCount":2,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"benchmark","path":"benchmark","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".npmignore","path":".npmignore","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"UPGRADING.md","path":"UPGRADING.md","contentType":"file"},{"name":"index.js","path":"index.js","contentType":"file"},{"name":"package.json","path":"package.json","contentType":"file"}],"totalCount":13}},"fileTreeProcessingTime":18.921602,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/CedarLogic/node-http-proxy/branches":{"post":"-PAy_azXLn8bM0kqduuDUxQQJNuAhG-RDiLCMakq3vKE8fjvIR5Q8akZnsZyXvmwR6jcTM7DUUfviakE5-XcHQ"},"/CedarLogic/node-http-proxy/branches/fetch_and_merge/proxy-req-error":{"post":"4quDEDcAHDtxlxSqix1xQVMixS2huAHIGLeh8LMre9Cj5NT9ap166RCzhbD79pKhF36CbAJP2C9DBPRqW9FErA"},"/CedarLogic/node-http-proxy/branches/fetch_and_merge/proxy-req-error?discard_changes=true":{"post":"jqa8Zia6UaTGKVB2lm-UsmQOgd9F0jPP5u_S4QGidyDP6euLeyc3dqcNwWzmhHdSIFLGnuYl6ii9XId76VhIXA"}}},"title":"node-http-proxy/benchmark at proxy-req-error · CedarLogic/node-http-proxy","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0