mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
bench: added test tools, updated results; added inline option for parse & render
This commit is contained in:
parent
13fdac0613
commit
6e68b6a17d
15 changed files with 438 additions and 131 deletions
3
bench/.gitignore
vendored
Normal file
3
bench/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.html
|
||||
*.pdf
|
||||
packets/
|
|
@ -5,23 +5,21 @@
|
|||
|
||||
Parsing time of 1 000 000 packets in milliseconds:
|
||||
|
||||
| | libpsyc | libpsyc fast | json-c | json-glib | libxml sax | libxml | rapidxml fast | rapidxml |
|
||||
|-----------+---------+--------------+--------+-----------+------------+--------+---------------+----------|
|
||||
| presence | 597 | 246 | 3247 | 10197 | 4997 | 7557 | 1643 | 1719 |
|
||||
| chat msg | 714 | 320 | | | 5997 | 9777 | 1799 | 1893 |
|
||||
| activity | 903 | 366 | 5768 | 16846 | 13357 | 28858 | 4001 | 4419 |
|
||||
| user prof | 1806 | 608 | 5847 | 17468 | 7350 | 12377 | 2218 | 2477 |
|
||||
|-----------+---------+--------------+--------+-----------+------------+--------+---------------+----------|
|
||||
| / | < | > | < | > | < | > | < | > |
|
||||
| | strlen | libpsyc | json-c | json-glib | libxml sax | libxml | rapidxml |
|
||||
|-----------+--------+---------+--------+-----------+------------+--------+----------|
|
||||
| presence | 30 | 246 | 2463 | 10197 | 4997 | 7557 | 1719 |
|
||||
| chat msg | 41 | 320 | | | 5997 | 9777 | 1893 |
|
||||
| activity | 42 | 366 | 4666 | 16846 | 13357 | 28858 | 4419 |
|
||||
| user prof | 55 | 608 | 4715 | 17468 | 7350 | 12377 | 2477 |
|
||||
|-----------+--------+---------+--------+-----------+------------+--------+----------|
|
||||
| / | < | < | < | > | < | > | > |
|
||||
|
||||
* Commands used
|
||||
|
||||
: ./testPsyc -snc 1000000 -f $file
|
||||
: ./testPsycFast -sc 1000000 -f $file
|
||||
: ./testPsycSpeed -sc 1000000 -f $file
|
||||
: ./testJson -snc 1000000 -f $file
|
||||
: ./testJsonGlib -snc 1000000 -f $file
|
||||
: ./testStrlen -sc 1000000 -f $file
|
||||
: ./rapidxml 1000000 $file
|
||||
: fast_mode=1 ./rapidxml 1000000 $file
|
||||
: ./libxml 1000000 $file
|
||||
: ./libxml-sax 1000000 $file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue