1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

Merge commit 'origin'

This commit is contained in:
psyc://psyced.org/~lynX 2011-05-24 21:49:51 +02:00
commit a447cba367
2 changed files with 15 additions and 16 deletions

View file

@ -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 hasn't been implemented nor deployed yet, we will not include it
in the benchmarks: in the benchmarks:
#+BEGIN_SRC psyc #+INCLUDE: packets/presence-compact.psyc src psyc
:c psyc://example.com/~juliet
=da 4
np
|
#+END_SRC
** An average chat message ** 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 | | json-unfriendly | 49 | 430 | 2328 | 10006 | 5141 | 7875 | 1751 |
| xml-unfriendly | 37 | 296 | 2156 | 9591 | 5571 | 8769 | 1765 | | xml-unfriendly | 37 | 296 | 2156 | 9591 | 5571 | 8769 | 1765 |
|-----------------+--------+---------+--------+-----------+------------+--------+----------| |-----------------+--------+---------+--------+-----------+------------+--------+----------|
| / | < | > | < | > | < | | > | | / | < | | < | > | < | | > |
| | <r> | <r> | <r> | <r> | <r> | <r> | <r> | | | <r> | <r> | <r> | <r> | <r> | <r> | <r> |
Pure syntax comparisons above, protocol performance comparisons below: Pure syntax comparisons above, protocol performance comparisons below:
| input: | PSYC | | JSON | | | XMPP | | | input: | | PSYC | | JSON | | | XMPP | |
| parser: | strlen | libpsyc | json-c | json-glib | libxml sax | libxml | rapidxml | | parser: | strlen | libpsyc | compact | json-c | json-glib | libxml sax | libxml | rapidxml |
|-----------------+--------+---------+--------+-----------+------------+--------+----------| |----------+--------+---------+---------+--------+-----------+------------+--------+----------|
| presence | 30 | 236 | 2463 | 10016 | 4997 | 7557 | 1719 | | presence | 30 | 236 | 122 | 2463 | 10016 | 4997 | 7557 | 1719 |
| chat msg | 40 | 295 | 2147 | 9526 | 5997 | 9777 | 1893 | | chat msg | 40 | 295 | | 2147 | 9526 | 5997 | 9777 | 1893 |
| activity | 42 | 353 | 4666 | 16327 | 13357 | 28858 | 4356 | | activity | 42 | 353 | | 4666 | 16327 | 13357 | 28858 | 4356 |
|-----------------+--------+---------+--------+-----------+------------+--------+----------| |----------+--------+---------+---------+--------+-----------+------------+--------+----------|
| / | < | > | < | > | < | | > | | / | < | | > | < | > | < | | > |
Parsing large amounts of binary data. For JSON & XML base64 encoding was used. 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 Note that the results below include only the parsing time, base64 decoding was

View file

@ -0,0 +1,5 @@
:c psyc://example.com/~juliet
=da 4
np
|