mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
Merge commit 'origin'
This commit is contained in:
commit
a447cba367
2 changed files with 15 additions and 16 deletions
|
@ -89,13 +89,7 @@ And this is the same message in PSYC's compact form, but since compact mode
|
|||
hasn't been implemented nor deployed yet, we will not include it
|
||||
in the benchmarks:
|
||||
|
||||
#+BEGIN_SRC psyc
|
||||
:c psyc://example.com/~juliet
|
||||
|
||||
=da 4
|
||||
np
|
||||
|
|
||||
#+END_SRC
|
||||
#+INCLUDE: packets/presence-compact.psyc src psyc
|
||||
|
||||
** An average chat message
|
||||
|
||||
|
@ -142,19 +136,19 @@ These tests were performed on a 2.53 GHz Intel(R) Core(TM)2 Duo P9500 CPU.
|
|||
| json-unfriendly | 49 | 430 | 2328 | 10006 | 5141 | 7875 | 1751 |
|
||||
| xml-unfriendly | 37 | 296 | 2156 | 9591 | 5571 | 8769 | 1765 |
|
||||
|-----------------+--------+---------+--------+-----------+------------+--------+----------|
|
||||
| / | < | > | < | > | < | | > |
|
||||
| / | < | | < | > | < | | > |
|
||||
| | <r> | <r> | <r> | <r> | <r> | <r> | <r> |
|
||||
|
||||
Pure syntax comparisons above, protocol performance comparisons below:
|
||||
|
||||
| input: | PSYC | | JSON | | | XMPP | |
|
||||
| parser: | strlen | libpsyc | json-c | json-glib | libxml sax | libxml | rapidxml |
|
||||
|-----------------+--------+---------+--------+-----------+------------+--------+----------|
|
||||
| presence | 30 | 236 | 2463 | 10016 | 4997 | 7557 | 1719 |
|
||||
| chat msg | 40 | 295 | 2147 | 9526 | 5997 | 9777 | 1893 |
|
||||
| activity | 42 | 353 | 4666 | 16327 | 13357 | 28858 | 4356 |
|
||||
|-----------------+--------+---------+--------+-----------+------------+--------+----------|
|
||||
| / | < | > | < | > | < | | > |
|
||||
| input: | | PSYC | | JSON | | | XMPP | |
|
||||
| parser: | strlen | libpsyc | compact | json-c | json-glib | libxml sax | libxml | rapidxml |
|
||||
|----------+--------+---------+---------+--------+-----------+------------+--------+----------|
|
||||
| presence | 30 | 236 | 122 | 2463 | 10016 | 4997 | 7557 | 1719 |
|
||||
| chat msg | 40 | 295 | | 2147 | 9526 | 5997 | 9777 | 1893 |
|
||||
| activity | 42 | 353 | | 4666 | 16327 | 13357 | 28858 | 4356 |
|
||||
|----------+--------+---------+---------+--------+-----------+------------+--------+----------|
|
||||
| / | < | | > | < | > | < | | > |
|
||||
|
||||
Parsing large amounts of binary data. For JSON & XML base64 encoding was used.
|
||||
Note that the results below include only the parsing time, base64 decoding was
|
||||
|
|
5
bench/packets/presence-compact.psyc
Normal file
5
bench/packets/presence-compact.psyc
Normal file
|
@ -0,0 +1,5 @@
|
|||
:c psyc://example.com/~juliet
|
||||
|
||||
=da 4
|
||||
np
|
||||
|
|
Loading…
Reference in a new issue