<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Calculating Pi (3.14) on the Raspberry Pi 2-- How Fast Is It?</title><link>/products/raspberry-pi/raspberrypi_projects/b/blog/posts/calculating-pi-3-14-on-the-raspberry-pi-2---how-fast-is-it</link><description>This is the Raspberry Pi 2, which I used to calculate pi against other Pis. (Image via Raspberry Pi)I received a Raspberry Pi 2, and immediately wanted to see how much of an improvement it was. Games seem smoother, especially first person shooters. A</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Calculating Pi (3.14) on the Raspberry Pi 2-- How Fast Is It?</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/calculating-pi-3-14-on-the-raspberry-pi-2---how-fast-is-it</link><pubDate>Tue, 31 Mar 2015 00:16:37 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ded8d6f0-4918-42ff-968f-8c457c0f03c9</guid><dc:creator>Former Member</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;hi Cabe, Clem, et al&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Well I got my Raspberry PI 2 today, and finally got it on the network with wipi... &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here&amp;#39;s my times using Python3 and pdeclib.py pilib.py and piagm2():&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;With dscale(10010) :&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; raspberry PI b+:&amp;nbsp; 1m58s&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; raspberry PI 2:&amp;nbsp; 1m12s&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;... and that&amp;#39;s for 10,000+ digits !&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Blows your doors off, ey?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-ded8d6f0-4918-42ff-968f-8c457c0f03c9/7484.contentimage_5F00_938.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20126&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Calculating Pi (3.14) on the Raspberry Pi 2-- How Fast Is It?</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/calculating-pi-3-14-on-the-raspberry-pi-2---how-fast-is-it</link><pubDate>Sat, 28 Mar 2015 23:37:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ded8d6f0-4918-42ff-968f-8c457c0f03c9</guid><dc:creator>Former Member</dc:creator><slash:comments>3</slash:comments><description>&lt;p&gt;If you are going to dream, wish for (at least) double the RAM.&amp;nbsp; Insufficient RAM is the largest issue in any SoC.&amp;nbsp; E.g. if we had more RAM, we could set up /tmp and /run as tmpfs in /etc/fstab.&amp;nbsp; That would cut down a great deal on actual disk I/O.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In a couple of years, I&amp;#39;ll bet that the Pi version 3 or 4 with the same footprint will have 64-bit quad cores in a little.Big package.&amp;nbsp; RAM will be faster and probably at least 4GB in capacity.&amp;nbsp; I&amp;#39;m going to buy one for my granddaughter (she&amp;#39;ll be 4-5 years old then).&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20126&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Calculating Pi (3.14) on the Raspberry Pi 2-- How Fast Is It?</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/calculating-pi-3-14-on-the-raspberry-pi-2---how-fast-is-it</link><pubDate>Wed, 25 Mar 2015 07:57:44 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ded8d6f0-4918-42ff-968f-8c457c0f03c9</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;hi Cabe,&amp;nbsp; I am surprised that you did not use Python on the PI to calculate PI!&amp;nbsp; At any rate you might try this in BC&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;16 * a(1/5) -&amp;nbsp; 4 * a(1/239)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That formula will converge much faster... try it on all three models and report back...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Alternately you could use Python3 and the new Decimal module (built-in);&amp;nbsp; makes BC look like a brick.&amp;nbsp; And fast... oh &lt;/p&gt;&lt;p&gt;my goodness.&amp;nbsp; I wrote a library for it that you can get at PYPi called&amp;nbsp; pdeclib.&amp;nbsp; If you have PIP installed you can install it&lt;/p&gt;&lt;p&gt;with PIP.&amp;nbsp; Alternately you can get pdeclib from PythonDecimalLibrary on Google Code. Or, I&amp;#39;ll send you a copy.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Anyway, there is a routine (AGM) in pdeclib (comes with pilib) called&amp;nbsp; piagm2().&amp;nbsp; This will compute PI to arbitrary precision&lt;/p&gt;&lt;p&gt;and &amp;#39;fast&amp;#39; does not even begin to define it.&amp;nbsp; It screams.&amp;nbsp; You need to use Python3 to get the fast version of the Decimal &lt;/p&gt;&lt;p&gt;library, but,&amp;nbsp; my&amp;nbsp; pdeclib&amp;nbsp; will work (very fast) regardless (I run it on python 2.7.3 on my droid phone!)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have a Raspberry PI 2 on order now... let you know how it goes/&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Kind regards,&lt;/p&gt;&lt;p&gt;marcus&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-ded8d6f0-4918-42ff-968f-8c457c0f03c9/contentimage_5F00_1.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20126&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Calculating Pi (3.14) on the Raspberry Pi 2-- How Fast Is It?</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/calculating-pi-3-14-on-the-raspberry-pi-2---how-fast-is-it</link><pubDate>Mon, 23 Mar 2015 18:37:41 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ded8d6f0-4918-42ff-968f-8c457c0f03c9</guid><dc:creator>gulfboy</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I tried running the Octane 2.0 test on my Pi 2 and got much lower results (example: Octane Score = 333 vs 20377 from your test) Which browser did you use?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20126&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Calculating Pi (3.14) on the Raspberry Pi 2-- How Fast Is It?</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/calculating-pi-3-14-on-the-raspberry-pi-2---how-fast-is-it</link><pubDate>Tue, 17 Mar 2015 22:08:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ded8d6f0-4918-42ff-968f-8c457c0f03c9</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;The statement, &amp;quot;Pi 2 is getting results close to desktop processors&amp;quot;, is a bit over the top.&amp;nbsp; I ran `time echo &amp;quot;scale=2015; 4*a(1)&amp;quot; | bc -l` on an ASROCK H67M-ITX/HT Mini-ITX motherboard with an Intel i3-2100T 2.1 MHz CPU which is fairly modest by today&amp;#39;s desktop standards.&amp;nbsp; The resulting timings were as follows:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;real&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m2.652s&lt;/p&gt;&lt;p&gt;user&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m2.652s&lt;/p&gt;&lt;p&gt;sys&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m0.001s&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That puts the ASROCK motherboard at nearly 6 times as fast as a Pi 2 which I do plan to buy but certainly not for its computation ability.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20126&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Calculating Pi (3.14) on the Raspberry Pi 2-- How Fast Is It?</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/calculating-pi-3-14-on-the-raspberry-pi-2---how-fast-is-it</link><pubDate>Mon, 16 Mar 2015 10:21:55 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ded8d6f0-4918-42ff-968f-8c457c0f03c9</guid><dc:creator>Former Member</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I noticed that your calculated improvement running &amp;quot;at 32 Ops/Word&amp;quot; shows 83% which seemed wrong so I did the sum and it gave me 827%.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20126&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Calculating Pi (3.14) on the Raspberry Pi 2-- How Fast Is It?</title><link>https://community.element14.com/products/raspberry-pi/raspberrypi_projects/b/blog/posts/calculating-pi-3-14-on-the-raspberry-pi-2---how-fast-is-it</link><pubDate>Wed, 11 Mar 2015 15:05:30 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ded8d6f0-4918-42ff-968f-8c457c0f03c9</guid><dc:creator>cstanton</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I&amp;#39;ve found that the Pi 2 happily overclocked to 1Ghz (via raspi-config) have you considered doing this and checking how fast it&amp;#39;ll calculate it then, to see if it makes much difference?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20126&amp;AppID=84&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>