On Sat, Aug 2, 2008 at 10:13 PM, Tim Newsham <[EMAIL PROTECTED]> wrote:
http://www.thenewsh.com/%7Enewsham/store/Server5.hs
You should try profiling this. I can see a few possible problems (such
as reading String from a socket, instead of a ByteString), but it's
difficult to predict what migh
On 2008 Aug 4, at 23:45, Tim Newsham wrote:
Anyway, I haven't yet used any ByteString IO functions. I ran
some tests when I was starting and it seems that using Handle IO
functions was a bit slower than using the Socket IO functions
directly.
It looks like there are a bunch of Handle IO fun
You should try profiling this. I can see a few possible problems (such
as reading String from a socket, instead of a ByteString), but it's
difficult to predict what might be causing your code to be so slow.
Haskell code ought to be much more competitive with C for an
application like this.
I hav
On Sat, Aug 2, 2008 at 10:13 PM, Tim Newsham <[EMAIL PROTECTED]> wrote:
> Anyone interested in critiquing some code? I'm looking for ideas
> for making it faster and/or simpler:
>
> http://www.thenewsh.com/%7Enewsham/store/Server5.hs
The code looks fairly reasonable, although most of your stric
What kind of performance do you actually need? Can your network
connection actually sustain the bandwidth of your synthetic benchmarks?
This is just an exercise at the moment, so no particular performance
goal beyond "how fast can it go".
(tested using apache-bench, loopback interface, amd64
On Sat, 2008-08-02 at 19:13 -1000, Tim Newsham wrote:
> My measurements show that a simple dummy server (accept, forkio,
> recv byte) handles roughly 7500 requests/connects per second,
> the server/client that do real messages do about 4500 req and
> connections per second. If all requests are on
newsham:
Anyone interested in critiquing some code? I'm looking for ideas
for making it faster and/or simpler:
What optimisation and runtime flags did you use (-threaded or not?)
currently "ghc -O --make $< -o $@". For some measurements I tried
-threaded which seemed to have a slight slowdo
newsham:
> Anyone interested in critiquing some code? I'm looking for ideas
> for making it faster and/or simpler:
>
>http://www.thenewsh.com/%7Enewsham/store/Server5.hs
>
> This is an exercise to see how well a server in Haskell would perform.
> My goals are roughly:
> - retargetability
Anyone interested in critiquing some code? I'm looking for ideas
for making it faster and/or simpler:
http://www.thenewsh.com/%7Enewsham/store/Server5.hs
This is an exercise to see how well a server in Haskell would perform.
My goals are roughly:
- retargetability to other server types (