From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 3B70D99F for ; Fri, 13 Nov 2015 21:58:07 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B14751EA for ; Fri, 13 Nov 2015 21:58:06 +0000 (UTC) Received: by pacdm15 with SMTP id dm15so111725540pac.3 for ; Fri, 13 Nov 2015 13:58:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-type; bh=LX9O/7HZS8RKU58nWQh3ox1fE4LSS2XMu7OFDfL4HAk=; b=xBZQZuerUhhKbCy+Sa7BCEh9eaLdI/lIC4vJCNFBld/UJUm2+GR4SNHv34CierD4nV +ZwkFuyXARJo2loZDOHEH5jOA7gdBvMRZNQ0R64xAUP1gAmZt6Ng7/q9NpDuhdGVcnp5 5rw0FKtx+XMT2d+Q8ADvBVtMODt2EqHBUbZrx13U86ipzr8osjxHPDhdfwRfxWqWFH5w qTx+qeJj7RqVVmOQBILJ9pRI2Q6IMcKSU+WBCD4EBFWyo+Qm3CP7gsbHQa60lyBNUSEE lkFK5fKyf9TSc9IDv3ujrUBXxbgkZ03v4HJXUk2EHNPvlQ3eJmr5iCtRLMlSDEkBjcKr 5E7A== X-Received: by 10.66.100.166 with SMTP id ez6mr35635244pab.49.1447451886516; Fri, 13 Nov 2015 13:58:06 -0800 (PST) Received: from [192.168.0.132] (S0106bcd165303d84.cc.shawcable.net. [96.54.102.88]) by smtp.googlemail.com with ESMTPSA id l9sm20780320pbq.43.2015.11.13.13.58.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Nov 2015 13:58:05 -0800 (PST) From: Peter Tschipper To: bitcoin-dev@lists.linuxfoundation.org References: <5640F172.3010004@gmail.com> <20151109210449.GE5886@mcelrath.org> <5642172C.701@gmail.com> <56438A55.2010604@gmail.com> <27BB52F9-3E3F-443D-93BC-B6843EB992F5@toom.im> X-Enigmail-Draft-Status: N1110 Message-ID: <56465CEE.6010109@gmail.com> Date: Fri, 13 Nov 2015 13:58:06 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <27BB52F9-3E3F-443D-93BC-B6843EB992F5@toom.im> Content-Type: multipart/alternative; boundary="------------070100020803090400050108" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [bitcoin-dev] Block Compression (Datastream Compression) test results using the PR#6973 compression prototype X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 21:58:07 -0000 This is a multi-part message in MIME format. --------------070100020803090400050108 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Some further Block Compression tests results that compare performance when network latency is added to the mix. Running two nodes, windows 7, compressionlevel=6, syncing the first 200000 blocks from one node to another. Running on a highspeed wireless LAN with no connections to the outside world. Network latency was added by using Netbalancer to induce the 30ms and 60ms latencies. >From the data not only are bandwidth savings seen but also a small performance savings as well. However, the overall the value in compressing blocks appears to be in terms of saving bandwidth. I was also surprised to see that there was no real difference in performance when no latency was present; apparently the time it takes to compress is about equal to the performance savings in such a situation. The following results compare the tests in terms of how long it takes to sync the blockchain, compressed vs uncompressed and with varying latencies. uncmp = uncompressed cmp = compressed num blocks sync'd uncmp (secs) cmp (secs) uncmp 30ms (secs) cmp 30ms (secs) uncmp 60ms (secs) cmp 60ms (secs) 10000 264 269 265 257 274 275 20000 482 492 479 467 499 497 30000 703 717 693 676 724 724 40000 918 939 902 886 947 944 50000 1140 1157 1114 1094 1171 1167 60000 1362 1380 1329 1310 1400 1395 70000 1583 1597 1547 1526 1637 1627 80000 1810 1817 1767 1745 1872 1862 90000 2031 2036 1985 1958 2109 2098 100000 2257 2260 2223 2184 2385 2355 110000 2553 2486 2478 2422 2755 2696 120000 2800 2724 2849 2771 3345 3254 130000 3078 2994 3356 3257 4125 4006 140000 3442 3365 3979 3870 5032 4904 150000 3803 3729 4586 4464 5928 5797 160000 4148 4075 5168 5034 6801 6661 170000 4509 4479 5768 5619 7711 7557 180000 4947 4924 6389 6227 8653 8479 190000 5858 5855 7302 7107 9768 9566 200000 6980 6969 8469 8220 10944 10724 --------------070100020803090400050108 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Some further Block Compression tests results that compare performance when network latency is added to the mix.

Running two nodes, windows 7, compressionlevel=6, syncing the first 200000 blocks from one node to another.  Running on a highspeed wireless LAN with no connections to the outside world.
Network latency was added by using Netbalancer to induce the 30ms and 60ms latencies.

From the data not only are bandwidth savings seen but also a small performance savings as well.  However, the overall the value in compressing blocks appears to be in terms of saving bandwidth.  

I was also surprised to see that there was no real difference in performance when no latency was present; apparently the time it takes to compress is about equal to the performance savings in such a situation.


The following results compare the tests in terms of how long it takes to sync the blockchain, compressed vs uncompressed and with varying latencies.
uncmp = uncompressed
cmp = compressed

num blocks sync'd uncmp (secs) cmp (secs) uncmp 30ms (secs) cmp 30ms (secs) uncmp 60ms (secs) cmp 60ms (secs)
10000 264 269 265 257 274 275
20000 482 492 479 467 499 497
30000 703 717 693 676 724 724
40000 918 939 902 886 947 944
50000 1140 1157 1114 1094 1171 1167
60000 1362 1380 1329 1310 1400 1395
70000 1583 1597 1547 1526 1637 1627
80000 1810 1817 1767 1745 1872 1862
90000 2031 2036 1985 1958 2109 2098
100000 2257 2260 2223 2184 2385 2355
110000 2553 2486 2478 2422 2755 2696
120000 2800 2724 2849 2771 3345 3254
130000 3078 2994 3356 3257 4125 4006
140000 3442 3365 3979 3870 5032 4904
150000 3803 3729 4586 4464 5928 5797
160000 4148 4075 5168 5034 6801 6661
170000 4509 4479 5768 5619 7711 7557
180000 4947 4924 6389 6227 8653 8479
190000 5858 5855 7302 7107 9768 9566
200000 6980 6969 8469 8220 10944 10724

--------------070100020803090400050108--