# I hope the codes can compiled under MingW

**URL:** <https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548>\
**Category:** NGINX\
**Created:** [February 17, 2009, 5:36pm UTC](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548 "2009-02-17T17:36:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 17, 2009, 5:36pm UTC](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548/1 "2009-02-17T17:36:13Z")

</div>

Subject: I hope the codes can compiled under MingWDate: Wed, 18 Feb 2009  
00:06:15 +0800

Cause MingW will compile the codes to native banary,I hope some day I  
can get this kind of code.I think it’s better than the one compiled  
under Cygwin.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 17, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548/2 "2009-02-17T18:56:18Z")

</div>

On Wed, Feb 18, 2009 at 12:16:47AM +0800, ??? wrote:

> Cause MingW will compile the codes to native banary,I hope some day I can get this kind of code.I think it’s better than the one compiled under Cygwin.

I have non-public and unready for production Win32 sources,  
they are built by MSVC 6/7/8, Borland C 5.5, and OpenWatcom.  
Now I use this for warning testing only, so I did not create  
a build procedure for MinGW as various gcc versions are available on  
Unix.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 18, 2009, 3:07am UTC](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548/3 "2009-02-18T03:07:21Z")

</div>

> Date: Tue, 17 Feb 2009 19:32:54 +0300\> From: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> Subject: Re: I hope the codes can compiled under MingW\> \> On Wed, Feb 18, 2009 at 12:16:47AM +0800, ??? wrote:\> \> \> Cause MingW will compile the codes to native binary,I hope some day I can get this kind of codes.I think it’s better than the one compiled under Cygwin.\> \> I have non-public and unready for production Win32 sources,\> they are built by MSVC 6/7/8, Borland C 5.5, and OpenWatcom.\> Now I use this for warning testing only, so I did not create\> a build procedure for MinGW as various gcc versions are available on Unix.\> \> \> – \> Igor S.\> [Igor Sysoev](http://sysoev.ru/en/)\>  
> That’s sound like good! But I feel that MinGW/gcc may make something  
> different than MSVC/Borland C and others.  
> I think supporting and maintaining the codes for MinGW/gcc is more  
> easier than for MSVC/Borland C and others.  
> I’d tried to compile nginx under MinGW and found that I had to change so  
> much codes to fit MinGW’s lack of included headers. I think it’s easy to  
> fixed on you side.  
> I think that binaries compiled by MinGW/gcc is pretty similar with  
> MSVC/Borland C and others compiled, because they all are Windows native  
> binaries.  
> As you see, now many opensource projects are planned to support  
> compiling under MinGW/gcc but not MSVC/Borland C and others.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 19, 2009, 8:46am UTC](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548/4 "2009-02-19T08:46:12Z")

</div>

Sorry for my subject, not under MingW/GCC4.4 but under Cygwin/GCC4.4

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 19, 2009, 7:29am UTC](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548/5 "2009-02-19T07:29:51Z")

</div>

I just take some time to do it for fun.

================================================

Server Side:  
A notebook, Celeron CPU 1.06GHz, SD-RAM 256Mb,  
Windows XP SP2, Nginx 0.7.35 under Cygwin 1.7.0 compiled by gcc 4.4  
In nginx.conf: worker\_processes 5; worker\_connections 40000;

Client Side:  
PC, Celeron CPU 2.40GHz, DDR-RAM 1Gb,  
Windows 2003 SP2, ApacheBench 2.0.41-dev.

# Internat: 10Mbps bandwith to connect each other.

C:\>ab.exe -c 64 -n 1000 [http://192.168.8.3/lc365\_index.html](http://192.168.8.3/lc365_index.html)  
This is ApacheBench, Version 2.0.41-dev \<$Revision: 1.121.2.12 $\>  
apache-2.0  
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,  
[http://www.zeustech.net/](http://www.zeustech.net/)  
Copyright (c) 1998-2002 The Apache Software Foundation,  
[http://www.apache.org/](http://www.apache.org/)

Benchmarking 192.168.8.3 (be patient)  
Completed 100 requests  
Completed 200 requests  
Completed 300 requests  
Completed 400 requests  
Completed 500 requests  
Completed 600 requests  
Completed 700 requests  
Completed 800 requests  
Completed 900 requests  
Finished 1000 requests

Server Software: nginx/0.7.35  
Server Hostname: 192.168.8.3  
Server Port: 80

Document Path: /lc365\_index.html  
Document Length: 112492 bytes

Concurrency Level: 64  
Time taken for tests: 188.78125 seconds  
Complete requests: 1000  
Failed requests: 0  
Write errors: 0  
Total transferred: 112729000 bytes  
HTML transferred: 112492000 bytes  
Requests per second: 5.32 [#/sec] (mean)  
Time per request: 12037.000 [ms] (mean)  
Time per request: 188.078 [ms] (mean, across all concurrent  
requests)  
Transfer rate: 585.32 [Kbytes/sec] received

Connection Times (ms)  
min mean[+/-sd] median max  
Connect: 0 101 329.2 46 3015  
Processing: 3188 11771 3441.3 11453 62187  
Waiting: 328 1268 911.0 1046 10765  
Total: 3453 11872 3444.2 11531 62312

Percentage of the requests served within a certain time (ms)  
50% 11531  
66% 12265  
75% 13234  
80% 13734  
90% 15953  
95% 16640  
98% 18937  
99% 21312  
100% 62312 (longest request)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 23, 2009, 3:15am UTC](https://www.ruby-forum.com/t/i-hope-the-codes-can-compiled-under-mingw/160548/6 "2009-02-23T03:15:54Z")

</div>

It seemed that the Cherokee Web Server has a windows edition builded  
under MingW.But it’s outdated.  
See [http://www.cherokee-project.com/download/windows/](http://www.cherokee-project.com/download/windows/)
