{"id":2215,"date":"2016-08-04T21:58:20","date_gmt":"2016-08-04T12:58:20","guid":{"rendered":"http:\/\/1bed.allright.life\/?p=2215"},"modified":"2020-04-18T21:20:54","modified_gmt":"2020-04-18T12:20:54","slug":"post-2215","status":"publish","type":"post","link":"https:\/\/1bed.allright.life\/?p=2215","title":{"rendered":"PowerShell \u3067 ClosedXML \u306e\u5358\u7d14\u306a\u52d5\u4f5c\u901f\u5ea6\u6bd4\u8f03"},"content":{"rendered":"<h2>\u7d4c\u7def<\/h2>\n<p>\u5148\u306b\u66f8\u3044\u305f\u30d6\u30ed\u30b0 <a href=\"http:\/\/1bed.allright.life\/?p=2206\">PowerShell \u3067 ClosedXML \u3092\u4f7f\u3063\u3066 Excel \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/a> \u306b\u3066\u3001\u300c\u52d5\u4f5c\u304c\u8efd\u5feb\u300d\u3068\u66f8\u304d\u307e\u3057\u305f\u304c\u4f53\u611f\u3067\u3057\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u5358\u7d14\u306b <strong>\u591a\u304f\u306e\u30bb\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u5165\u308c\u305f\u3089\u901f\u5ea6\u306b\u5dee\u304c\u3067\u308b\u304b\uff1f<\/strong> \u3068\u3044\u3046\u306e\u3092\u8a66\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u5358\u7d14\u306a\u6bd4\u8f03\u3068\u3044\u3044\u306a\u304c\u8272\u3005\u3068\u52c9\u5f37\u3057\u306a\u304c\u3089\u3067\u3057\u305f\u3002<\/p>\n<p>\u7279\u306b\u3001\u4e00\u62ec\u3067\u8cbc\u308a\u4ed8\u3051\u308b\u65b9\u6cd5\u306f\u300c\u901f\u3044\u300d\u3068\u3044\u3046\u30d6\u30ed\u30b0\u7b49\u306f\u591a\u304f\u76ee\u306b\u3057\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u3069\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u691c\u8a3c\u3057\u3066\u4f55\u3068\u6bd4\u3079\u3066\u901f\u3044\u306e\u304b\u304c\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u306e\u306f\u79c1\u306b\u306f\u898b\u3064\u3051\u3089\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u306e\u3067\u3001\u500b\u4eba\u7684\u306b\u306f\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u3068\u3066\u3082\u5927\u5207\u3067\u3059\u3002<\/p>\n<h2>\u74b0\u5883<\/h2>\n<ul>\n<li>VAIO-Z\n<ul>\n<li>CPU: Core i7-5557U 3.10 GHz (\u6700\u59273.40 GHz)<\/li>\n<li>Mem: 16GB<\/li>\n<li>Storage: \u7b2c\u4e8c\u4e16\u4ee3 \u30cf\u30a4\u30b9\u30d4\u30fc\u30c9SSD(PCI Express x 4 (20 Gb\/s))<\/li>\n<\/ul>\n<\/li>\n<li>Windows 10<\/li>\n<li>PowerShell 5.0<\/li>\n<li>ClosedXML 0.76.0<\/li>\n<li>Microsoft Open XML Format SDK <\/li>\n<li>MS Office 2016<\/li>\n<\/ul>\n<h2>\u8a08\u6e2c\u65b9\u6cd5<\/h2>\n<p>Measure-Command \u3092\u5229\u7528\u3057\u3066\u8a08\u6e2c\u3059\u308b<\/p>\n<pre><code class=\"language-powershell\">Measure-Command { ClosedXML_Pattern1.ps1 }<\/code><\/pre>\n<h2>\u691c\u8a3c\u9805\u76ee\u3068\u7d50\u679c<\/h2>\n<p>\u4e00\u3064\u306e\u30b7\u30fc\u30c8\u3067\u3001100 X 100 \u306e\u30bb\u30eb\u306b\u4e0b\u8a18\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u30c7\u30fc\u30bf\u3092\u5165\u308c\u3066\u3044\u304f<\/p>\n<table>\n<thead>\n<tr>\n<th>No.<\/th>\n<th>\u8a66\u9a13\u5185\u5bb9<\/th>\n<th>COM Object<\/th>\n<th>ClosedXML<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1.<\/td>\n<td>\u30bb\u30eb 1 \u3064\u3065\u3064 10,000 \u56de\u3001\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b(\u88c5\u98fe\u306a\u3057)<\/td>\n<td>30.4542562 sec<\/td>\n<td>0.699596 sec<\/td>\n<\/tr>\n<tr>\n<td>2.<\/td>\n<td>\u30bb\u30eb 1 \u3064\u3065\u3064 10,000 \u56de\u3001\u6587\u5b57\u8272\u3092\u8d64\u3001\u30d5\u30a9\u30f3\u30c8\u306e\u5927\u304d\u3055\u3092 15 \u306e\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b<\/td>\n<td>136.3952091 sec<\/td>\n<td>0.913028 sec<\/td>\n<\/tr>\n<tr>\n<td>3.<\/td>\n<td>1 \u884c(100 \u30bb\u30eb\uff09 \u3065\u3064 100 \u884c\u5206\u3001\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b(\u88c5\u98fe\u306a\u3057)<\/td>\n<td>2.0920194 sec<\/td>\n<td>0.6800917 sec<\/td>\n<\/tr>\n<tr>\n<td>4.<\/td>\n<td>1 \u884c(100 \u30bb\u30eb\uff09 \u3065\u3064 100 \u884c\u5206\u3001\u6587\u5b57\u8272\u3092\u8d64\u3001\u30d5\u30a9\u30f3\u30c8\u306e\u5927\u304d\u3055\u3092 15 \u306e\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b<\/td>\n<td>6.8155114 sec<\/td>\n<td>0.8739652 sec<\/td>\n<\/tr>\n<tr>\n<td>5.<\/td>\n<td>10,000 \u306e\u30bb\u30eb\u306b\u4e00\u62ec\u3067\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b(\u88c5\u98fe\u306a\u3057)<\/td>\n<td>1.5663538 sec<\/td>\n<td>0.6527399 sec<\/td>\n<\/tr>\n<tr>\n<td>6.<\/td>\n<td>10,000 \u306e\u30bb\u30eb\u306b\u4e00\u62ec\u3067\u3001\u6587\u5b57\u8272\u3092\u8d64\u3001\u30d5\u30a9\u30f3\u30c8\u306e\u5927\u304d\u3055\u3092 15 \u306e\u30c7\u30fc\u30bf\u3092\u5165\u308c\u308b<\/td>\n<td>2.1558577 sec<\/td>\n<td>0.8357458 sec<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u4eca\u56de\u691c\u8a3c\u306b\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u306f <a href=\"https:\/\/github.com\/miyamiya\/Learnning_PowerShell\/tree\/master\/Com_vs_ClosedXML\">GitHub<\/a> \u306b\u304a\u3044\u3066\u3042\u308a\u307e\u3059<\/li>\n<\/ul>\n<h2>\u8003\u5bdf<\/h2>\n<p>xls \u7e1b\u308a\u3068\u304b\u304c\u306a\u3044\u306e\u306a\u3089\u3001ClosedXML \u3092\u4f7f\u3063\u305f\u307b\u3046\u304c\u3088\u3044\u306a\u3068\u3044\u3046\u306e\u304c\u79c1\u306e\u611f\u60f3\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u5c11\u3057\u9762\u5012\u306b\u611f\u3058\u307e\u3059\u304c\u3001\u914d\u5217\u306b\u5165\u308c\u3066\u4e00\u6c17\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u307b\u3046\u304c\u5727\u5012\u7684\u306b\u901f\u3044\u3067\u3059\u306e\u3067\u3001\u8a2d\u8a08\u6bb5\u968e\u304b\u3089\u3053\u306e\u8003\u3048\u3092\u53d6\u308a\u5165\u308c\u3066\u3044\u304d\u305f\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d4c\u7def \u5148\u306b\u66f8\u3044\u305f\u30d6\u30ed\u30b0 PowerShell \u3067 ClosedXML \u3092\u4f7f\u3063\u3066 Excel \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b \u306b\u3066\u3001\u300c\u52d5\u4f5c\u304c\u8efd\u5feb\u300d\u3068\u66f8\u304d\u307e\u3057\u305f\u304c\u4f53\u611f\u3067\u3057\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u5358\u7d14\u306b \u591a\u304f\u306e\u30bb\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u5165\u308c\u305f\u3089\u901f\u5ea6\u306b\u5dee\u304c\u3067\u308b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[97,62],"class_list":["post-2215","post","type-post","status-publish","format-standard","hentry","category-program","tag-excel","tag-powershell"],"_links":{"self":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2215"}],"version-history":[{"count":7,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2215\/revisions"}],"predecessor-version":[{"id":3149,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2215\/revisions\/3149"}],"wp:attachment":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}