chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Fix (restore?) specializations from types.


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] Fix (restore?) specializations from types.db when compiling core itself
Date: Sat, 28 Nov 2015 17:30:55 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Nov 18, 2015 at 07:58:49PM +0100, Peter Bex wrote:
> Attached is also a diff of the benchmarks, and you can clearly see the
> benefit this has in the difference between "test" and "master" on the
> kernwyk-wc and kernwyk-cat benchmarks, as I hoped it would.

I also ran the intarweb benchmarks (which read/write a lot to string
ports), and it's consistently faster with patch.  The difference isn't
huge, but noticeable regardless.

For those that are interested, here are the benchmark run outputs (sorry,
it has no fancy tabular output):

Without patch:
--------------

Unparsers:
==========


---  Response unparsing ---
Unparsing a minimal HTTP/1.1 response many times
0.224s CPU time, 0.004s GC time (major), 108656/1440 mutations (total/tracked), 
1/1341 GCs (major/minor)
Unparsing a realistic HTTP/1.1 response many times
2.752s CPU time, 0.06s GC time (major), 1037114/7054 mutations (total/tracked), 
27/17342 GCs (major/minor)

---  Request unparsing ---
Unparsing a minimal HTTP/1.1 request many times
0.22s CPU time, 0.004s GC time (major), 108296/1459 mutations (total/tracked), 
1/1483 GCs (major/minor)
Unparsing a realistic HTTP/1.1 request many times
5.548s CPU time, 0.252s GC time (major), 8687532/240933 mutations 
(total/tracked), 73/36245 GCs (major/minor)

Parsers:
==========


---  Request parsing ---
Parsing a minimal HTTP/1.0 request many times
6.912s CPU time, 0.48s GC time (major), 4630912/486536 mutations 
(total/tracked), 174/47762 GCs (major/minor)
Parsing a realistic HTTP/1.1 request many times
29.836s CPU time, 2.876s GC time (major), 11884605/2145481 mutations 
(total/tracked), 1089/236099 GCs (major/minor)

---  Response parsing ---
Parsing a minimal HTTP/1.0 response many times
3.24s CPU time, 0.212s GC time (major), 4413434/259920 mutations 
(total/tracked), 76/20950 GCs (major/minor)

Parsing a realistic HTTP/1.1 response many times
18.368s CPU time, 1.604s GC time (major), 8999267/2480008 mutations 
(total/tracked), 559/131810 GCs (major/minor)


With patch:
-----------

Unparsers:
==========


---  Response unparsing ---
Unparsing a minimal HTTP/1.1 response many times
0.184s CPU time, 0.004s GC time (major), 108656/1580 mutations (total/tracked), 
1/1261 GCs (major/minor)
Unparsing a realistic HTTP/1.1 response many times
2.7s CPU time, 0.076s GC time (major), 1037114/6886 mutations (total/tracked), 
26/17065 GCs (major/minor)

---  Request unparsing ---
Unparsing a minimal HTTP/1.1 request many times
0.212s CPU time, 108296/1438 mutations (total/tracked), 1/1403 GCs (major/minor)
Unparsing a realistic HTTP/1.1 request many times
5.452s CPU time, 0.204s GC time (major), 8687532/240245 mutations 
(total/tracked), 75/35694 GCs (major/minor)

Parsers:
==========


---  Request parsing ---
Parsing a minimal HTTP/1.0 request many times
6.644s CPU time, 0.472s GC time (major), 4629832/484472 mutations 
(total/tracked), 174/46161 GCs (major/minor)
Parsing a realistic HTTP/1.1 request many times
28.796s CPU time, 2.848s GC time (major), 11883525/2141135 mutations 
(total/tracked), 1064/228281 GCs (major/minor)

---  Response parsing ---
Parsing a minimal HTTP/1.0 response many times
3.152s CPU time, 0.192s GC time (major), 4411292/258693 mutations 
(total/tracked), 68/20155 GCs (major/minor)

Parsing a realistic HTTP/1.1 response many times
17.552s CPU time, 1.46s GC time (major), 8997089/2459681 mutations 
(total/tracked), 562/125354 GCs (major/minor)


Cheers,
Peter

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]