Author vstinner
Recipients vstinner
Date 2014-01-28.10:14:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390904080.54.0.251964551869.issue20416@psf.upfronthosting.co.za>
In-reply-to
Content
Use attached bench.py to compare performances.

Without the patch:
---
dumps v0: 389.6 ms
data size v0: 45582.9 kB
loads v0: 573.3 ms

dumps v1: 391.4 ms
data size v1: 45582.9 kB
loads v1: 558.0 ms

dumps v2: 166.9 ms
data size v2: 41395.4 kB
loads v2: 482.2 ms

dumps v3: 431.2 ms
data size v3: 41395.4 kB
loads v3: 543.8 ms

dumps v4: 361.8 ms
data size v4: 37000.9 kB
loads v4: 560.4 ms
---

With the patch:
---
dumps v0: 391.4 ms
data size v0: 45582.9 kB
loads v0: 578.2 ms

dumps v1: 392.3 ms
data size v1: 45582.9 kB
loads v1: 556.8 ms

dumps v2: 167.7 ms
data size v2: 41395.4 kB
loads v2: 484.6 ms

dumps v3: 170.3 ms
data size v3: 41395.4 kB
loads v3: 467.0 ms

dumps v4: 122.8 ms
data size v4: 37000.9 kB
loads v4: 468.9 ms
---

dumps v3 is 60% faster, loads v3 is also 14% *faster*.

dumps v4 is 66% faster, loads v4 is 16% faster.
History
Date User Action Args
2014-01-28 10:14:40vstinnersetrecipients: + vstinner
2014-01-28 10:14:40vstinnersetmessageid: <1390904080.54.0.251964551869.issue20416@psf.upfronthosting.co.za>
2014-01-28 10:14:40vstinnerlinkissue20416 messages
2014-01-28 10:14:40vstinnercreate