title: Performance of reading a registry key?
body: <p>I'm wondering how long it takes (in milliseconds) to read a registry value from the Windows registry through standard C# libraries. In this case, I'm reading in some proxy settings. </p>
  
  <p>What order of magnitude value should I expect?
  Are there any good benchmark data available?</p>
  
  <p>I'm running WS2k8 R2 amd64. Bonus points: How impactful is the OS sku/version on this measure?</p>
  
  <pre><code> using (RegistryKey registryKey = Registry.CurrentUser.OpenSubKey(@"Software/Copium")) 
   { 
        return (string)registryKey.GetValue("BinDir"); 
   } 
  </code></pre>