-
-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix becnhmark.py and add warning in cmake file #311
base: master
Are you sure you want to change the base?
Conversation
c4c4e89
to
4a5e740
Compare
4a5e740
to
3b0aeac
Compare
Have you tested the script with the current version of weighttp with JSON output as default? (I'm thinking about moving weighttp to the Lwan source tree and build it alongside Lwan -- this way it's easier to benchmark, as the tools can just call into the built binaries rather than requiring a non-standard version of the tool. It's just a single file so should be easy to hook it up.) |
Sorry @lpereira , I have tried another version of
But still missing the |
This version should be fine. It doesn't have the -j option because it
outputs JSON by default. The check can be removed from the script.
Have you tested the script with this weighttp you have?
…On Mon, Sep 13, 2021, 20:38 7FrogTW ***@***.***> wrote:
Have you tested the script with the current version of weighttp with JSON
output as default?
(I'm thinking about moving weighttp to the Lwan source tree and build it
alongside Lwan -- this way it's easier to benchmark, as the tools can just
call into the built binaries rather than requiring a non-standard version
of the tool. It's just a single file so should be easy to hook it up.)
Sorry @lpereira <https://github.com/lpereira> ,
Could you please provide the correct weighttp you are currently using?
I have tried another version of weighttp :
https://github.com/gstrauss/weighttp/tree/rewrite.
which have following options:
***@***.***:/app/build/weighttp# weighttp -h
weighttp - a lightweight and simple webserver benchmarking tool
weighttp <options> <URI>
-n num number of requests (mandatory)
-t num thread count (default: 1)
-c num concurrent clients (default: 1)
-k keep alive (default: no)
-K num num pipelined requests (default: 1)
-6 use ipv6 (default: no)
-i use HTTP HEAD method (default: GET)
-m method use custom HTTP method (default: GET)
-H str add header to request ("label: value"); repeatable
-b size socket buffer sizes (SO_SNDBUF, SO_RCVBUF)
-B addr local address to bind to when making outgoing connections
-C cookie add cookie to request ("cookie-name=value"); repeatable
-F use TCP Fast Open (RFC 7413)
-T type Content-Type header to use for POST/PUT data,
e.g. application/x-www-form-urlencoded
(default: text/plain)
-A string add Basic WWW Authorization (str is username:password)
-P string add Basic Proxy-Authorization (str is username:password)
-X proxy proxy:port or unix domain socket path beginning w/ '/'
-p file make HTTP POST request using file contents for body
-u file make HTTP PUT request using file contents for body
-d (ignored; compatibility with Apache Bench (ab))
-l (ignored; compatibility with Apache Bench (ab))
-r (ignored; compatibility with Apache Bench (ab))
-q quiet: do not show version header or progress
-h show help and exit
-V show version and exit
example:
weighttpd -n 500000 -c 100 -t 2 -K 64 http://localhost/index.html
But still missing the -j option.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#311 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADVGIFA5BHDNTAOZFWE3TUB27TVANCNFSM5D3W4FUQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Yes, I have tested it using |
Sorry for my late update.
|
I'm sorry about taking so long to respond to this, but we're now building |
Currently target
testsuite
andbenchmark
rely on packagelua
andpython3
,I think it's better to give a warning message if any of the package is missing.
benchmark.py
is still using python2 modulecommands
, I replaced it with python3 modulesubprocess
.fix
LWAN_PATH
for thetestrunner
inbenchmark.py
.remove argument of
-j
inweighttp
command, currently command options in my environment:related issue: #309