Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: RS Wood Newsgroups: comp.misc Subject: how much computers can do in one second Date: Mon, 27 Mar 2017 14:43:20 +0300 Organization: solani.org Lines: 42 Message-ID: <8737dzq71j.fsf@therandymon.com> Mime-Version: 1.0 Content-Type: text/plain X-Trace: solani.org 1490615005 9013 eJwNyckBwCAIBMCWOJbFlIMi/Zdg5jvhVJ4Eg4iJoSjN2iHMhvol1sz/16bsiK3aX1ilbnhnPf23EGY= (27 Mar 2017 11:43:25 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 27 Mar 2017 11:43:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:6G3MI94Dfim6BmGcnjgex1iYk8U= sha1:N5KWPOqqwZCsAjHDvVxJmFO0JOU= X-User-ID: eJwNwokRACEIBLCWjm+VcnDB/kvwJgmDgMsR8Lg/0OUEdGTpKHw2XJtiwe5z+eXktlVZSql5EO4RMA== X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXoNDCzlHU/09YwpBrKkUlH993K+oeoZtTwoJxhZ8UzJWIzo2Eabt8In78iA9y Xref: csiph.com comp.misc:13378 http://computers-are-fast.github.io/ Interesting website: they provide sample code and you have to guess how many iterations a computer can complete in a second. Example: #include // Number to guess: How many iterations of // this loop can we go through in a second? int main(int argc, char **argv) { int NUMBER, i, s; NUMBER = atoi(argv[1]); for (s = i = 0; i < NUMBER; ++i) { s += 1; } return 0; } I underestimated all of them. There's some good, related discussion on HackerNews at https://news.ycombinator.com/item?id=13960183. This stood out in particular: realo 19 hours ago [-] Yes, modern computers are fast. How fast? The speed of light is about 300,000 km/s. That translates to roughly 1 ns per foot (yeah, I mix up my units... I'm Canadian...) THUS, a computer with a clock speed of 2 GHz will be able to execute, on a single core/thread, about 4 (four !) single-clock instructions between the moment photons leave your screen, and the moment they arrive into your eye 2 feet (roughly) later. _That_ should give you an idea of how fast modern computers really are. And I _still_ wait quite a bit when starting up Microsoft Word.