ocaml client?

1 view
Skip to first unread message

Dustin

unread,
Jun 9, 2008, 5:05:04 PM6/9/08
to beanstalk-talk
I've written most of an ocaml beanstalk client (a bit more than the
parts I use, but not everything yet).

It seems that ruby is too slow for the kinds of stuff I'm doing at
home so I played around with writing a client for my needs last
night. I haven't actually used it, but...

At work, we push async observer jobs via cron. I noticed a couple
failures late last night. It looks like the machine got slow while
doing a bunch of work and killed off some clients or something.

I threw together a simple ocaml client that does exactly what I need
and pushed 1,000 requests through it (from fork through exit):

ocaml: 1.380u 3.685s 0:05.76 87.8% 0+0k 0+2io 1pf+0w
ruby: 109.931u 24.054s 2:18.33 96.8% 0+0k 0+27io 0pf+0w

Also, ~6.2MB vs. ~500k.

This is rather trivial, though. I plan to try my home project (I
don't actually know what I'm doing there yet, but I pushed around 6
million jobs through yesterday).
Reply all
Reply to author
Forward
0 new messages