Skip to content
Snippets Groups Projects
Commit 3d0c58a0 authored by Rene Brun's avatar Rene Brun
Browse files

Add new benchmarks comparing old and new zlib

git-svn-id: http://root.cern.ch/svn/root/trunk@10751 27541ba8-7e3a-0410-8455-c3a389f83636
parent 9d59982e
No related branches found
No related tags found
No related merge requests found
......@@ -13,23 +13,41 @@ Only the useful code has been extracted from this tar file. It consists of:
To put a new zlib version in ROOT, all these files must be replaced.
The zlib version number can be found in zip/inc/zlib.h
The zlib version number can be found in zip/inc/zlib.h.
The current zlib is 1.2.1.
zlib is now used in TPDF to compress the "stream" part of PDF files.
The ROOT compress functions R__zip and R__unzip have also been modified
in order to use zlib. Some performance tests (on a P4 2.4GHz) show that
the new zlib version is as fast as the current ROOT zip functions when
writing and up to 10 per cent faster when reading.
oldzlib newzlib
Event 1000 1 0 1 11.59s 11.46s
Event 1000 1 0 20 3.83s 3.31s
Event 1000 1 99 1 10.44s 10.98s
Event 1000 1 99 20 3.57s 3.17s
stress -b 30 13.01s 12.35s
stress -b 1000 61.67s 58.38s
bench 151.99s 151.56s
stressLinear 35.87s 35.77s
in order to use zlib. Some performance tests show very different results
depending on the machine configuration and compiler.
see two results below (the right column indicates the percentage
of gain (or loss) when using the new zlib.
The new zlib seems to slower when writing and faster when reading.
On Linux RH7.3 gcc3.2.3 Pentium IV 2.4 GHz
==========================================
oldzlib zlib 1.2.1 gain(+)/loss(-)
Event 1000 1 0 1 11.59s 11.46s + 1.12
Event 1000 1 0 20 3.83s 3.31s +13.57
Event 1000 1 99 1 10.44s 10.98s - 5.17
Event 1000 1 99 20 3.57s 3.17s +11.20
stress -b 30 13.01s 12.35s + 5.07
stress -b 1000 61.67s 58.38s + 5.33
bench 151.99s 151.56s + 0.28
stressLinear 35.87s 35.77s + 0.28
On windows VC++7.1 IBM R40 Pentium M 1.5Ghz
===========================================
oldzlib zlib 1.2.1 gain(+)/loss(-)
Event 1000 1 0 1 7.53s 8.67s -15.14
Event 1000 1 0 20 2.43s 2.30s + 5.35
Event 1000 1 99 1 6.67s 8.76s -31.33
Event 1000 1 99 20 2.35s 2.22s + 5.55
stress -b 30 9.23s 9.52s - 3.14
stress -b 1000 42.13s 47.91s -13.72
bench 112.53s 118.89s - 5.65
stressLinear 37.44s 37.08s + 0.96
To activate the new zlib it is enough to set Root.ZipMode = 1
in the system.rootrc file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment