title: RavenDB Deserialization seems slow
body: <p>I have been playing around with RavenDB (build 531) and I can't seem to get the performance correct.</p>
  
  <p>I have a simple class</p>
  
  <pre><code>    public class Cat
      {
        public string Id {get; set;}
        public string Name {get; set;
      }
  </code></pre>
  
  <p>I create about 200 random cats, and put them to RavenDB.</p>
  
  <p>But when I go to fetch <strong>one</strong> cat, via</p>
  
  <pre><code>   session.Load&lt;Cat&gt;("cats/&lt;GUID&gt;");
  </code></pre>
  
  <p>it takes about 700 ms.</p>
  
  <p>The Debug window from RavenDB looks like this</p>
  
  <pre><code>    Request # 156: GET - **0 ms** - &lt;default&gt;-200-/docs/cats/&lt;GUID&gt;
  </code></pre>
  
  <p>It returns me the correct Cat, but the Deserialization seems to take a long time.</p>
  
  <p>I've tried to deserialize the output from a file, to see if that's really the culprit, but I can't seem to figure out how to do that.</p>
  
  <p>Thoughts?</p>
  
  <p><strong>Edit:</strong> I tried deserializing just a plain old Cat object, and it took 100 ms.</p>
  
  <p><strong>Edit2:</strong> Here's the answer.</p>
  
  <p>It appears there is some significant startup costs.</p>
  
  <p>If I fetch any other Cat after my first one, my performance increases significantly -- to &lt; 100 ms.</p>
  
  <p>Hence why you don't benchmark with only one fetch.</p>