Skip to content
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

Process to compile in windows 10/11 #526

Open
krishnaTORQUE opened this issue Aug 28, 2023 · 3 comments
Open

Process to compile in windows 10/11 #526

krishnaTORQUE opened this issue Aug 28, 2023 · 3 comments

Comments

@krishnaTORQUE
Copy link

Hi
I would like to know what are process to compile in windows 10/11, if it support.
For linux & mac its working fine.
Thanks

@ksylvan
Copy link

ksylvan commented Sep 14, 2023

You could use it in WSL2 - in an Ubuntu WSL container, run:

sudo apt install wrk

And then:

$ wrk
Usage: wrk <options> <url>                            
  Options:                                            
    -c, --connections <N>  Connections to keep open   
    -d, --duration    <T>  Duration of test           
    -t, --threads     <N>  Number of threads to use   
                                                      
    -s, --script      <S>  Load Lua script file       
    -H, --header      <H>  Add header to request      
        --latency          Print latency statistics   
        --timeout     <T>  Socket/request timeout     
    -v, --version          Print version details      
                                                      
  Numeric arguments may include a SI unit (1k, 1M, 1G)
  Time arguments may include a time unit (2s, 2m, 2h)

@insinfo
Copy link

insinfo commented Oct 22, 2023

@ksylvan
Do you know how to compile for native Windows?

@ksylvan
Copy link

ksylvan commented Dec 4, 2023

@insinfo

Do you know how to compile for native Windows?

No, I don't. I haven't done it myself.

But it's mostly C and Lua, and given a sufficiently POSIX-like environment, you should be able to do it. You might need to do something like install Cygwin: https://www.cygwin.com/ and then install GCC, etc.

You can install Lua on Windows:

https://www.oreilly.com/library/view/lua-quick-start/9781789343229/b9f5f696-15a5-4445-9eb7-5fea563e9592.xhtml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants