Set the connect socket option in beanstalk_connection.erl {nodelay, true}

On Thursday, September 30, 2010 12:58:48 PM UTC+2, wiemo wrote:
>
> Hey Guys, 
>
> for load testing I tried to fill my queue with 9000 jobs (about 50 
> byte each). 
>
> The erlang-beanstalk lib seems to be pretty slow on putting the jobs 
> into the queue from what I see. 
> All I get is approx 50-100 jobs per second. 
>
> Trying to fill the queue with the exact same jobs using ruby beanstalk- 
> client lib brings the expected 9000 entries per second. 
>
> I tried several machines so far (SuSe, CentOS, Windows). Same problem 
> occurs everywhere. 
>
> All I do is: 
>
> start() -> 
>         {ok, Q} = beanstalk:connect(), 
>         bs_test(0, Q). 
>
> bs_test(Start, Q) -> 
>         case Start of 
>         9000 -> 
>                 io:format("done"); 
>         _ -> 
>
>                 Test = <<"---\n-666\n-{{34343434},{544543543543534}} 
> \n-565465465656\n- deno\n 30\n">>, 
>                 {inserted, _} = beanstalk:put(Q, Test), 
>                 bs_test(Start+1, Q) 
>         end. 
>
> Seems pretty basic to me. 
>
> Any ideas on this one? 
>
> Greetings, 
> Wiemo 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/beanstalk-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to