<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>griefworker</author_name>
  <author_url>https://blog.hatena.ne.jp/griefworker/</author_url>
  <blog_title>present</blog_title>
  <blog_url>https://tnakamura.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>WCF で、毎回チャネルを生成してサービスを呼び出した場合と、生成したチャネルを使い回した場合、どれくらい時間に差が出るのかを試してみました。早速ですが、10回、100回、1000回連続してサービスを呼び出した結果は、下表の通りです。 場面 10回(ms) 100回(ms) 1000回(ms) 1度生成したチャネルを使い回し 16 146 1415 毎回チャネルを生成してサービス呼び出し 52 481 4519 3倍くらい開きがあります。でも、サービスを１つの処理で100回呼び出すなんてことは、まず無いでしょうね。気にしなくてもいいかな。実験に使ったコードは次の通り。 using System…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F20090804%2Fwcf_channel_cost&quot; title=&quot;WCF チャネルの生成と破棄にかかるコスト - present&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-08-04 00:00:00</published>
  <title>WCF チャネルの生成と破棄にかかるコスト</title>
  <type>rich</type>
  <url>https://tnakamura.hatenablog.com/entry/20090804/wcf_channel_cost</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
