{"id":128,"date":"2012-06-28T11:49:19","date_gmt":"2012-06-28T02:49:19","guid":{"rendered":"http:\/\/soundengine.jp\/wordpress\/tips\/?p=128"},"modified":"2014-02-06T23:42:40","modified_gmt":"2014-02-06T14:42:40","slug":"c%e9%96%a2%e6%95%b0%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%97%e3%81%ae%e9%80%9f%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/soundengine.jp\/wordpress\/tips\/try\/128\/","title":{"rendered":"C++\u95a2\u6570\u547c\u3073\u51fa\u3057\u306e\u901f\u5ea6"},"content":{"rendered":"<p>C++\u3067\u8272\u3005\u306a\u95a2\u6570\u547c\u3073\u51fa\u3057\u306e\u65b9\u6cd5\u304c\u3042\u308b\u3068\u601d\u3046\u304c\u3001\u305d\u308c\u305e\u308c\u3069\u308c\u3050\u3089\u3044\u306e\u901f\u5ea6(\u30b3\u30b9\u30c8)\u3067\u547c\u3073\u51fa\u305b\u308b\u304b\u3092\u4eca\u56de\u6e2c\u5b9a\u3057\u3066\u307f\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<h2 id=\"content_1_0\">\u547c\u3073\u51fa\u3057\u65b9\u6cd5  <a class=\"anchor_super\" id=\"zfd0046c\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-04-07#zfd0046c\" title=\"zfd0046c\"> <\/a><\/h2>\n<p>\u4eca\u56de\u306f\u3001\u4ee5\u4e0b\u306e4\u7a2e\u985e\u306e\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u65b9\u6cd5\u306b\u3064\u3044\u3066\u6e2c\u5b9a\u3057\u3066\u307f\u305f\u3002<\/p>\n<ul>\n<li>Static Call(\u9759\u7684\u95a2\u6570\u547c\u3073\u51fa\u3057)<\/li>\n<li>Member Call(\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u547c\u51fa\u3057)<\/li>\n<li>Virtual Call(\u4eee\u60f3\u95a2\u6570\u547c\u51fa\u3057)<\/li>\n<li>Pointer Member Call(\u30dd\u30a4\u30f3\u30bf\u3092\u4f7f\u3063\u3066\u306e\u30e1\u30f3\u30d0\u30fc\u547c\u51fa\u3057)<\/li>\n<\/ul>\n<div class=\"jumpmenu\">\n<\/div>\n<h2 id=\"content_1_1\">\u30b3\u30fc\u30c9  <a class=\"anchor_super\" id=\"i1569426\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-04-07#i1569426\" title=\"i1569426\"> <\/a><\/h2>\n<p>\u5b9f\u969b\u306b\u4f7f\u3063\u305f\u30b3\u30fc\u30c9(\u30af\u30e9\u30b9\u90e8\u5206\u306e\u307f)\u306f\u4e0b\u306e\u3082\u306e\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002<\/p>\n<pre>class Test1\r\n{\r\npublic:\r\n\r\n\tvoid MemberCall()\r\n\t{\r\n\t}; \r\n\r\n\tvirtual void VirtualCall()\r\n\t{\r\n\t};\r\n};\r\n\r\nclass Test2 : public Test1\r\n{\r\npublic:\r\n\r\n\tTest1 * ptr_test1;\r\n\r\n\tstatic void StaticCall()\r\n\t{\r\n\t};\r\n\r\n\tvoid MemberCall()\r\n\t{\r\n\t};\r\n\r\n \tvirtual void VirtualCall()\r\n\t{\r\n\t};\r\n\r\n\tvoid PointerMemberCall()\r\n\t{\r\n\t\tif( ptr_test1 )\r\n\t\t{\r\n\t\t\tptr_test1-&gt;MemberCall();\r\n\t\t}\r\n\t};\r\n};<\/pre>\n<p>\u305d\u308c\u305e\u308c\u306e\u547c\u51fa\u3057\u30921728000000\u56de\u884c\u3063\u3066\u305d\u306e\u6642\u9593\u3092QueryPerformanceCounter\u3092\u4f7f\u3063\u3066\u6e2c\u5b9a\u3057\u3066\u307f\u305f\u30021728000000 = 48000 * 60 * 60 * 10(\u7279\u306b\u610f\u5473\u306f\u306a\u3044\u304c\u300148000kHz\u30671\u30b5\u30f3\u30d7\u30eb\u3042\u305f\u308a10\u56de\u547c\u51fa\u3057\u304c\u5165\u3063\u305f\u3068\u304d\u306e1\u6642\u9593\u5206\u306e\u547c\u51fa\u3057\u51e6\u7406\u56de\u6570)<\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h2 id=\"content_1_2\">\u7d50\u679c  <a class=\"anchor_super\" id=\"j6204ea7\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-04-07#j6204ea7\" title=\"j6204ea7\"> <\/a><\/h2>\n<div class=\"spacer\">&nbsp;<\/div>\n<div class=\"jumpmenu\">\n<\/div>\n<h3 id=\"content_1_3\">IBM X40 (Intel Pentium M 1.3GHz)  <a class=\"anchor_super\" id=\"ve33a7e6\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-04-07#ve33a7e6\" title=\"ve33a7e6\"> <\/a><\/h3>\n<div class=\"ie5\">\n<table class=\"style_table\" border=\"0\" cellspacing=\"1\">\n<tbody>\n<tr>\n<th class=\"style_th\">\u547c\u51fa\u3057<\/th>\n<th class=\"style_th\">\u79d2<\/th>\n<\/tr>\n<tr>\n<th class=\"style_th\">Static Call<\/th>\n<td class=\"style_td\">2.757345<\/td>\n<\/tr>\n<tr>\n<th class=\"style_th\">Member Call<\/th>\n<td class=\"style_td\">2.759990<\/td>\n<\/tr>\n<tr>\n<th class=\"style_th\">Virtual Call<\/th>\n<td class=\"style_td\">9.552945<\/td>\n<\/tr>\n<tr>\n<th class=\"style_th\">Pointer Member Call<\/th>\n<td class=\"style_td\">2.719109<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"jumpmenu\">\n<\/div>\n<h3 id=\"content_1_4\">HP nx4300 (Intel Celeron M 1.4MHz)  <a class=\"anchor_super\" id=\"a0507f0f\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-04-07#a0507f0f\" title=\"a0507f0f\"> <\/a><\/h3>\n<div class=\"ie5\">\n<table class=\"style_table\" border=\"0\" cellspacing=\"1\">\n<tbody>\n<tr>\n<th class=\"style_th\">\u547c\u51fa\u3057<\/th>\n<th class=\"style_th\">\u79d2<\/th>\n<\/tr>\n<tr>\n<th class=\"style_th\">Static Call<\/th>\n<td class=\"style_td\">2.017109<\/td>\n<\/tr>\n<tr>\n<th class=\"style_th\">Member Call<\/th>\n<td class=\"style_td\">1,901998<\/td>\n<\/tr>\n<tr>\n<th class=\"style_th\">Virtual Call<\/th>\n<td class=\"style_td\">8.751331<\/td>\n<\/tr>\n<tr>\n<th class=\"style_th\">Pointer Member Call<\/th>\n<td class=\"style_td\">2.0377457<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"jumpmenu\">\n<\/div>\n<h2 id=\"content_1_5\">\u307e\u3068\u3081  <a class=\"anchor_super\" id=\"ad03d9a4\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-04-07#ad03d9a4\" title=\"ad03d9a4\"> <\/a><\/h2>\n<p>\u9759\u7684\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u3068\u30af\u30e9\u30b9\u30e1\u30f3\u30d0\u30fc\u95a2\u6570(this call)\u306e\u547c\u51fa\u3057\u306f\u307b\u3068\u3093\u3069\u9055\u3044\u304c\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308b\u3002\u305d\u308c\u306b\u5bfe\u3057\u3001\u4eee\u60f3\u95a2\u6570\u547c\u3073\u51fa\u3057\u306f\u3044\u305a\u308c\u306e\u5834\u5408\u306b\u304a\u3044\u3066\u30823\u301c4\u500d\u3050\u3089\u3044\u306e\u30b3\u30b9\u30c8\u304c\u304b\u304b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u4f7f\u3046\u5834\u9762\u3084\u56de\u6570\u306b\u3088\u3063\u3066\u306f\u3053\u306e3\u301c4\u500d\u306e\u30b3\u30b9\u30c8\u304c\u5927\u304d\u304f\u30bf\u30a4\u30e0\u30ed\u30b9\u306b\u3064\u306a\u304c\u308b\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u4f7f\u3046\u5fc5\u8981\u306f\u3042\u308b\u3002<\/p>\n<p>\u307e\u305f\u3001Pointer Member Call\u3068\u4eca\u56de\u306f\u540d\u3065\u3051\u3066\u3044\u308b\u304c\u3001\u30dd\u30a4\u30f3\u30bf\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u305d\u306e\u30e1\u30f3\u30d0\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3076\u3082\u306e\u306b\u3064\u3044\u3066\u306f\u5358\u7d14\u306a\u30e1\u30f3\u30d0\u547c\u51fa\u3057\u3068\u6bd4\u3079\u3066\u3082\u307b\u3068\u3093\u3069\u30b3\u30b9\u30c8\u304c\u304b\u304b\u3063\u3066\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308b\u3002(\u30dd\u30a4\u30f3\u30bf\u30c1\u30a7\u30c3\u30af\u304c\u5e38\u306bTrue\u306b\u306a\u308b\u3053\u3068\u304b\u3089\u5206\u5c90\u4e88\u6e2c\u304c\u52b9\u679c\u7684\u306b\u52b9\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u3042\u308d\u3046\u304b\u3001\u3001\u3001)<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u3053\u306e2\u3064\u306eCPU\u3067\u3042\u308b\u304c\u3001Pentium M\u306e\u65b9\u304c\u4e00\u4e16\u4ee3\u524d\u306e\u3082\u306e\u306a\u306e\u3067(L2\u30ad\u30e3\u30c3\u30b7\u30e5\u3082\u540c\u3058\u30b5\u30a4\u30ba\u306a\u306e\u3067)Celeron M\u306e\u65b9\u304c\u901f\u3044\u3002(\u5168\u4f53\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3082\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3067\u306fnx4300\u306e\u65b9\u304c\u3088\u3044\u3001\u3001\u3001\u672c\u4f53\u306f\u91cd\u305f\u3044\u304c)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++\u3067\u8272\u3005\u306a\u95a2\u6570\u547c\u3073\u51fa\u3057\u306e\u65b9\u6cd5\u304c\u3042\u308b\u3068\u601d\u3046\u304c\u3001\u305d\u308c\u305e\u308c\u3069\u308c\u3050\u3089\u3044\u306e\u901f\u5ea6(\u30b3\u30b9\u30c8 &hellip; <a href=\"https:\/\/soundengine.jp\/wordpress\/tips\/try\/128\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-try"],"_links":{"self":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":6,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":3368,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/128\/revisions\/3368"}],"wp:attachment":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}