{"id":2419,"date":"2009-05-01T12:24:00","date_gmt":"2009-05-01T12:24:00","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2009\/05\/01\/how-fast-is-your-graphics-card\/"},"modified":"2017-01-06T21:23:24","modified_gmt":"2017-01-07T02:23:24","slug":"how-fast-is-your-graphics-card","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2009\/05\/01\/how-fast-is-your-graphics-card\/","title":{"rendered":"How fast is your graphics card?"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction>\r\n      <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/5021\">Bob<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/7903-how-fast-is-your-graphics-card-\">How fast is your graphics card?<\/a> by Michael Kleder\r\n      <\/p>\r\n   <\/introduction>\r\n\r\n   <p>The title is brilliant. When browsing submissions do you ever wonder about its motivation? I see many submissions that explain\r\n      <b>what<\/b> an M-file does but not <b>why<\/b> or <b>when<\/b> you should use it. You probably know immediately whether you care about this submission or not. Kudos to Michael for being\r\n      so reader centric.\r\n   <\/p>\r\n   <p>The rating comments also caught my eye. As I read through them I realized users were having a group conversation of sorts.\r\n      Most readers don't leave comments (you know who you are) but take away observations all the same. It reminds me of a meeting\r\n      where a few folks do all the talking but others participate by listening and learning. In person we also communicate with\r\n      expressions and body language. The download numbers say something about how many others probably tried Michael's benchmark\r\n      but without ratings or comments we don't know who nodded her head or furrowed his brow before moving on. I really appreciate\r\n      all of you who take a minute to share your feedback. Thanks for setting a good example.\r\n   <\/p>\r\n   <p>Michael's test strategy also intrigued me. Watching the measurements bounce around and settle down made it more interesting\r\n      to watch. It got me thinking about what it must be doing. For example, my score ramped up to a stable value which suggested\r\n      the program averages all runs so the initial delay eventually amortizes out of significance along with measurement noise.\r\n      A look at the code confirmed that. But I also expected to see a <tt>while<\/tt> loop repeating for a minute and count the number of iterations to calculate RPM. So I was surprised to find a fixed <tt>for<\/tt> loop instead. You might prefer to loop until the score changed by less than some tolerance. It goes to show there are different\r\n      ways to solve a problem. It's fun to learn programming tips and tricks from others as well.\r\n   <\/p>\r\n   <p><a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2419#respond\">Comments?<\/a><\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_9eb684e24cdf4ea1aa05cb8a3a1479d6() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='9eb684e24cdf4ea1aa05cb8a3a1479d6 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 9eb684e24cdf4ea1aa05cb8a3a1479d6';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Robert Bemis';\r\n        copyright = 'Copyright 2009 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_9eb684e24cdf4ea1aa05cb8a3a1479d6()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.8<br><\/p>\r\n<\/div>\r\n<!--\r\n9eb684e24cdf4ea1aa05cb8a3a1479d6 ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/5021 Bob>'s \r\n% pick this week is \r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/7903-how-fast-is-your-graphics-card- How fast is your graphics card?>\r\n% by Michael Kleder\r\n%%\r\n% https:\/\/www.mathworks.com\/matlabcentral\/fx_files\/7903\/1\/howfast.jpg\r\n%%\r\n% The title is brilliant. When browsing submissions do you ever wonder about\r\n% its motivation? I see many submissions that explain *what* an M-file does\r\n% but not *why* or *when* you should use it. You probably know immediately\r\n% whether you care about this submission or not. Kudos to Michael for being\r\n% so reader centric. \r\n%%\r\n% The rating comments also caught my eye. As I read through them I realized\r\n% users were having a group conversation of sorts. Most readers don't leave\r\n% comments (you know who you are) but take away observations all the same. It\r\n% reminds me of a meeting where a few folks do all the talking but others\r\n% participate by listening and learning. In person we also communicate with\r\n% expressions and body language. The download numbers say something about how\r\n% many others probably tried Michael's benchmark but without ratings or\r\n% comments we don't know who nodded her head or furrowed his brow before\r\n% moving on. I really appreciate all of you who take a minute to share your\r\n% feedback. Thanks for setting a good example.\r\n%%\r\n% Michael's test strategy also intrigued me. Watching the measurements bounce\r\n% around and settle down made it more interesting to watch. It got me\r\n% thinking about what it must be doing. For example, my score ramped up to a\r\n% stable value which suggested the program averages all runs so the initial\r\n% delay eventually amortizes out of significance along with measurement\r\n% noise. A look at the code confirmed that. But I also expected to see a\r\n% |while| loop repeating for a minute and count the number of iterations to\r\n% calculate RPM. So I was surprised to find a fixed |for| loop instead. You\r\n% might prefer to loop until the score changed by less than some tolerance.\r\n% It goes to show there are different ways to solve a problem. It's fun to\r\n% learn programming tips and tricks from others as well.\r\n%%\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2419#respond Comments?>\r\n\r\n##### SOURCE END ##### 9eb684e24cdf4ea1aa05cb8a3a1479d6\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   \r\n      Bob's pick this week is How fast is your graphics card? by Michael Kleder\r\n      \r\n   \r\n\r\n   The title is brilliant. When browsing submissions do you ever wonder about its motivation? I... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/05\/01\/how-fast-is-your-graphics-card\/\">read more >><\/a><\/p>","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2419"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2419"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2419\/revisions"}],"predecessor-version":[{"id":8324,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2419\/revisions\/8324"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}