{"id":1330,"date":"2013-08-02T09:03:13","date_gmt":"2013-08-02T14:03:13","guid":{"rendered":"http:\/\/www.jaimerios.com\/?p=1330"},"modified":"2013-08-02T09:03:13","modified_gmt":"2013-08-02T14:03:13","slug":"a-note-about-performance","status":"publish","type":"post","link":"https:\/\/jaimerios.com\/?p=1330","title":{"rendered":"A note about performance"},"content":{"rendered":"<p>On a multi-core Mac, running 10.8, I ran a test to compare the speed differences of incrementing or decrementing a value with no-locks, atomics and finally, a mutex lock.<\/p>\n<p>The no-lock is the baseline, and here is the difference in speed with the later 2 items:<br \/>\nAtomics: 3X slower on the same thread<br \/>\nMutex: 7X slower on the same thread<\/p>\n<p>Hmmm&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On a multi-core Mac, running 10.8, I ran a test to compare the speed differences of incrementing or decrementing a value with no-locks, atomics and finally, a mutex lock. The no-lock is the baseline, and here is the difference in speed with the later 2 items: Atomics: 3X slower on the same thread Mutex: 7X &#8230; <a title=\"A note about performance\" class=\"read-more\" href=\"https:\/\/jaimerios.com\/?p=1330\" aria-label=\"Read more about A note about performance\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[39,70,291,313,506],"class_list":["post-1330","post","type-post","status-publish","format-standard","hentry","category-coding","tag-10-8","tag-atomics","tag-macos","tag-mutex","tag-xcode"],"_links":{"self":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/1330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1330"}],"version-history":[{"count":0,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/1330\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}