Questions tagged [g-wan]

G-WAN is a web server with scripts in Asm, C, C++, C#, D, Go, Java, Javascript, Lua, Objective-C, Perl, PHP, Python, Ruby and Scala.

G-WAN is a (freeware) web application server first published in 2009. The gwan.com site presents the G-WAN API, answers FAQs and also publishes many benchmarks in various programming languages.

G-WAN supports scripts in Asm, C, C++, C#, D, Go, Java, Javascript, Lua, Objective-C, Perl, PHP, Python, Ruby, and Scala (click on a language link to show a benchmark).

An old performance comparison with static servers was done by an academic: http://nbonvin.wordpress.com/2011/03/24/serving-small-static-files-which-server-to-use/

A more recent benchmark (on 1/2/4/8 CPU Cores) - also made by an independent third-party - compares Apache 2.2, Apache 2.4, Nginx, Lighttpd, Varnish, Litespeed, Cherokee and G-WAN: http://www.rootusers.com/web-server-performance-benchmark/

272 questions
19
votes
7 answers

Does anyone has first-hand experience with G-WAN web Server?

The only place where I found informations on G-WAN web server was the project web site and it looked very much like advertisement. What I would really know is, for someone who is proficient with C, if it is as easy to use and extend that other…
kriss
  • 21,366
  • 15
  • 89
  • 109
14
votes
9 answers

fastest scripting programming language?

I have a web application project where performances count more than anything else, and I have the choice of the technologies to use. The language shootout benchmarks that are not really related to web applications. What would you recommand as the…
Michi
  • 149
  • 1
  • 1
  • 4
10
votes
1 answer

Has anybody used the GWAN web server in production?

I recently ran into gwan (http://gwan.ch) a free web server that according to many seem to be frightfully fast. I am not very keen on the C based scripting but I wanted to use it to serve static contents. I did see a thread in ./ on using gwan…
vivekv
  • 2,045
  • 1
  • 21
  • 31
9
votes
1 answer

Does anyone really uses G-WAN web server?

Besides impressing benchmarks, does anyone really uses G-WAN web server? (except of cource gwan.ch and trustleap.com)
Nick
  • 8,479
  • 2
  • 36
  • 64
5
votes
1 answer

Precompiling GWAN applications

I would like to be able to pre-compile GWAN applications written in C, as I don't want to deploy my source code on the customer's servers. I've read the documentation but can find no mention of how to do this. Is this even possible? I suppose one…
David Wylie
  • 607
  • 8
  • 22
5
votes
1 answer

g-wan - reproducing the performance claims

Using gwan_linux64-bit.tar.bz2 under Ubuntu 12.04 LTS unpacking and running gwan then pointing wrk at it (using a null file null.html) wrk --timeout 10 -t 2 -c 100 -d20s http://127.0.0.1:8080/null.html Running 20s test @…
user2603628
  • 101
  • 1
  • 5
5
votes
2 answers

Techniques to improve transaction rate

Lighttpd, nginx and others use a range of techniques to provide maximum application performance such as AIO, sendfile, MMIO, caching and epoll and lock free data structures. My collegue and I have written a little application server which uses…
hookenz
  • 30,814
  • 37
  • 149
  • 251
4
votes
2 answers

How to set and read cookies using C and the G-wan web server

In php you would set a cookie by doing Setting new cookie ============================= Getting…
matt
  • 197
  • 1
  • 13
4
votes
2 answers

API gateway for WebSocket

I need a API gateway for my websocket application. Analyse and identify unusual requests from certain IP Quotas and Rate Limiting Statistics Free or commercial Solid performance The sub-protocol of my WebSocket is WAMP, so I am afraid there is no…
Mr.Wang from Next Door
  • 10,685
  • 10
  • 47
  • 76
4
votes
1 answer

G-WAN, output headers from CGI script

I'm trying to set an HTTP header like Content-Type over a CGI script. In PHP: header('Content-Type: text/plain'); // or echo 'Content-Type: text/plain', "\r\n\r\n"; // as first line or in Go: fmt.Print("Content-Type: text/plain\r\n\r\n") // as…
thwd
  • 21,419
  • 4
  • 68
  • 99
4
votes
1 answer

Connect to mysql in a c script?

I'm new to using the gwan server(link) and for that matter programming in c. I wanted to know what was the easiest way to use mysql in a c script for the gwan server? I've experimented with dbi.c as used here and the project page can be found here,…
sbditto85
  • 1,455
  • 14
  • 21
3
votes
3 answers

C++ compatibility for lightweight web servers

I'm very new to Web server matters, and relatively a naive student of C++. I'm now working on a project where I have to create a Plugin to an existing web server. It is a commercial project for a company, but it's also my bachelor thesis project.…
the_naive
  • 2,696
  • 6
  • 34
  • 63
3
votes
1 answer

issues configuring G-WAN to use D2

I've downloaded, compiled and installed gdc from it's bitbucket repository. Then I downloaded, extracted and ran G-WAN from it's site. I can now compile D2 code using gdc and it runs fine, and I can use G-WAN to load c-script in my browser. When I…
Jean-Bernard Pellerin
  • 12,062
  • 9
  • 54
  • 74
3
votes
1 answer

Is it possible (and how) to change the way G-WAN proceed requests?

Today, G-WAN proceed requests like this (sample using the loan.java servlet): localhost/?loan.java&name=Eva&amount=100000&term=5&rate=4.2 Could a specific handler (or even better a G-WAN switch) proceed requests like…
PCKB
  • 105
  • 1
  • 8
3
votes
3 answers

connection gwan with aerospike db in C

Hello. First I'm sorry for my ita-english. I want use gwan with aerospike but when run the servlet...problem. I start with this example.c of aerospike. In file example.c I put gwan.h and this is the output ./gwan: loading hello.cs: to use …
user112752
  • 121
  • 1
  • 9
1
2 3
18 19