it didn't finish my rewrite of CB for my current project where i need
performance,  i will enable session and filter, if need it or rewrite
it. to fit my need.

actually in the current CB version, you can generate a session or not,
this is a feature of the current CB.

here the bench of the actual version of CB in the same condition, on
my linux box: session and no session


load test against last version of CB, v0.8.13 (2015/01/18), with session
loadtest have been done in the same boxe on ubuntu 14.04 LTS, 8Gb ram,
model name : Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz).

mihawk@xyz:~/workspace/loadtest$ siege -c100
http://127.0.0.1:8001/session -b -t30s
** SIEGE 3.0.5
** Preparing 100 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:              15772 hits
Availability:             100.00 %
Elapsed time:              29.50 secs
Data transferred:           3.58 MB
Response time:              0.19 secs
Transaction rate:         534.64 trans/sec
Throughput:             0.12 MB/sec
Concurrency:               99.56
Successful transactions:       15772
Failed transactions:               0
Longest transaction:            0.46
Shortest transaction:           0.02

load test against last version of CB, v0.8.13 (2015/01/18), with no session

mihawk@xyz:~/workspace/loadtest$ siege -c100 http://127.0.0.1:8001/test -b -t30s
** SIEGE 3.0.5
** Preparing 100 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:              33872 hits
Availability:             100.00 %
Elapsed time:              29.33 secs
Data transferred:           2.75 MB
Response time:              0.09 secs
Transaction rate:        1154.86 trans/sec
Throughput:             0.09 MB/sec
Concurrency:               99.83
Successful transactions:       33872
Failed transactions:               0
Longest transaction:            0.20
Shortest transaction:           0.01




module(loadtest_test_controller, [Req]).
-compile(export_all).

-default_action(index).

index('GET', []) ->
    {A,B,C}=erlang:now(),
    random:seed(A,B,C),
    R = random:uniform(20),
    List = getList(R),
    {ok, [{list, List}]}.

getList(R) ->
    lists:foldl(fun(N,A) ->
            [[{val, N}]|A] end,
            [], lists:seq(1,R)).

hello('GET', []) ->
    {ok, [{message, "Hello world !!!"}]}.

here the view:

<html>
<head>
<title>{% block title %}Loadtest{% endblock %}</title>
</head>
<body>
{% block body %}
{% if list %}
  {% for l in list %}
    -{{ l.val }}<br/>
  {% endfor %}
{% else %}
  Nope
{% endif %}
{% endblock %}
</body>
</html>


2015-02-10 13:43 GMT+08:00 Dmitry Polyanovsky <[email protected]>:
> Hi,
>
>
> great work. But what a difference for case with both sessions and filters
> enabled? any improvement? It worth supporting.
>
> On Tue, Feb 10, 2015 at 3:42 AM, chan sisowath <[email protected]>
> wrote:
>>
>> my current version of CB go up to 9000 req/sec, there is no session
>> generated and no filter
>>
>> siege -c100 http://127.0.0.1:8001/test -b -t30s
>> ** SIEGE 3.0.5
>> ** Preparing 100 concurrent users for battle.
>> The server is now under siege...
>> Lifting the server siege...      done.
>>
>> Transactions:             263888 hits
>> Availability:             100.00 %
>> Elapsed time:              29.49 secs
>> Data transferred:          56.73 MB
>> Response time:              0.01 secs
>> Transaction rate:        8948.39 trans/sec
>> Throughput:             1.92 MB/sec
>> Concurrency:               99.74
>> Successful transactions:      263888
>> Failed transactions:               0
>> Longest transaction:            0.09
>> Shortest transaction:           0.00
>>
>> FILE: /var/log/siege.log
>> You can disable this annoying message by editing
>> the .siegerc file in your home directory; change
>> the directive 'show-logfile' to false.
>> [error] Unable to write to file: Permission denied
>>
>>
>> 2015-02-10 0:05 GMT+08:00 chan sisowath <[email protected]>:
>> >
>> > 2015-01-19 15:50 GMT+08:00 chan sisowath <[email protected]>:
>> >>
>> >> hi,
>> >>
>> >> i made an issue for this
>> >> https://github.com/ChicagoBoss/ChicagoBoss/issues/542,
>> >>
>> >> if you want to improve CB speed, plz consider to place a bunty
>> >> https://www.bountysource.com/issues/7862880-improve-cb-speed
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> 2014-11-03 6:48 GMT+08:00 can2nac <[email protected]>:
>> >>>
>> >>> Jesse, thank you for answer!
>> >>>
>> >>> On Saturday, November 1, 2014 8:39:03 PM UTC+4, Caiyun Deng wrote:
>> >>>>
>> >>>> Hi!
>> >>>> I saw the n2o's introduction, https://github.com/5HT/n2o
>> >>>> The comparision of performance said that: ChicagoBoss has only 500
>> >>>> req/s, and n2o is 15K req/s.
>> >>>> It is hard to believe that.
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> >>> Groups
>> >>> "ChicagoBoss" group.
>> >>> To unsubscribe from this group and stop receiving emails from it, send
>> >>> an
>> >>> email to [email protected].
>> >>> Visit this group at http://groups.google.com/group/chicagoboss.
>> >>> To view this discussion on the web visit
>> >>>
>> >>> https://groups.google.com/d/msgid/chicagoboss/9f8d24bc-e4d7-4f7e-8bf2-b59b539fbcfb%40googlegroups.com.
>> >>>
>> >>> For more options, visit https://groups.google.com/d/optout.
>> >>
>> >>
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ChicagoBoss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> Visit this group at http://groups.google.com/group/chicagoboss.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/chicagoboss/CAB-Ofhkr3yZyUoSP4CJymnnBWezUUkq35TU1O5bMCCZ3_dVq%2Bg%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/CAF9GSxZnsHLuFdUQBzeLNvXq8R0O2h9rPn-3C3RRBFym2Ee-%2Bw%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CAB-Ofhky5gVBRo8qHM220Z%3DdV8syPX8ZvbYwnRK7deBLpY-COQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to