mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
bench: testPsycFast results
This commit is contained in:
parent
b73b8e3246
commit
1edd326f1f
8 changed files with 133 additions and 24 deletions
|
@ -8,6 +8,8 @@ INIT = (setq load-path (cons \"/usr/share/emacs/site-lisp/org-mode\" load-path)
|
|||
org-src-preserve-indentation t) \
|
||||
(require 'org-install)
|
||||
|
||||
ORG = benchmark.org results.org
|
||||
|
||||
wiki2org:
|
||||
perl -pe '\
|
||||
s/^= (.*) =\s*$$/#+TITLE: $$1\n/; \
|
||||
|
@ -17,18 +19,21 @@ wiki2org:
|
|||
s/^}}}/#+END_SRC/ \
|
||||
' benchmark.wiki >benchmark.org
|
||||
|
||||
tangle:
|
||||
packets:
|
||||
emacs -Q --batch --eval \
|
||||
"(progn ${INIT} (find-file \"benchmark.org\") \
|
||||
(org-babel-tangle) (kill-buffer))"
|
||||
perl -pi -e 'print "\n" unless $$p; $$p=1' packets/user_profile.psyc
|
||||
|
||||
html:
|
||||
emacs -Q --batch --eval \
|
||||
"(progn ${INIT} (find-file \"benchmark.org\") \
|
||||
(org-export-as-html-batch) (kill-buffer))"
|
||||
for f in ${ORG}; do \
|
||||
emacs -Q --batch --eval \
|
||||
"(progn ${INIT} (find-file \"$$f\") \
|
||||
(org-export-as-html-batch) (kill-buffer))"; \
|
||||
done
|
||||
|
||||
pdf:
|
||||
emacs -Q --batch --eval \
|
||||
"(progn ${INIT} (find-file \"benchmark.org\") \
|
||||
(org-export-as-pdf org-export-headline-levels) (kill-buffer))"
|
||||
for f in ${ORG}; do \
|
||||
emacs -Q --batch --eval \
|
||||
"(progn ${INIT} (find-file \"$@.org\") \
|
||||
(org-export-as-pdf org-export-headline-levels) (kill-buffer))"
|
||||
|
|
|
@ -5,20 +5,22 @@
|
|||
|
||||
Parsing time of 1 000 000 packets in milliseconds:
|
||||
|
||||
| | libpsyc | json-c | json-glib | libxml sax | libxml | rapidxml fast | rapidxml |
|
||||
|-----------+---------+--------+-----------+------------+--------+---------------+----------|
|
||||
| presence | 597 | 3247 | 10197 | 4997 | 7557 | 1643 | 1719 |
|
||||
| chat msg | 714 | | | 5997 | 9777 | 1799 | 1893 |
|
||||
| activity | 903 | 5768 | 16846 | 13357 | 28858 | 4001 | 4419 |
|
||||
| user prof | 1806 | 5847 | 17468 | 7350 | 12377 | 2218 | 2477 |
|
||||
| / | <> | < | > | < | > | < | > |
|
||||
|
||||
| | 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 |
|
||||
|-----------+---------+--------------+--------+-----------+------------+--------+---------------+----------|
|
||||
| / | < | > | < | > | < | > | < | > |
|
||||
|
||||
* Commands used
|
||||
|
||||
: ./testPsyc -snc 1000000 -f $file
|
||||
: ./testPsycFast -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue