[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] new MHD demo
From: |
Christian Grothoff |
Subject: |
[libmicrohttpd] new MHD demo |
Date: |
Sun, 31 Mar 2013 23:28:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
Hi everyone,
I just wanted to let you know that I just finished writing a 'just for fun'
demo for
MHD, showing how to do GET and POST with form processing, file upload and error
handling. I tried to comment the code a lot as I hope it will be educational
for some.
You can find it at
https://gnunet.org/svn/libmicrohttpd/src/examples/demo.c
The code requires libmagic for mime-type detection (configure now checks for it;
however, libmagic is ONLY a dependency for the demo, not for anything else).
I mostly used the demo to benchmark MHD a bit, as someone online claimed 'bad'
POST
processing performance. As a result, SVN HEAD now also includes some minor
performance
improvements; however, I suspect for most users they make little to no
difference.
(If we're not IO-bound, I see speeds exceeding 1.5 GB/s for POST and 2 GB/s for
GET
on my desktop, which to me seems fast enough; in any case, if someone has a
benchmark
that still shows a real issue, please do let me know.)
Happy hacking!
Christian
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] new MHD demo,
Christian Grothoff <=