Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. [MemoryDiagnoser]
  2. public class NameParserBenchmarks
  3. {
  4. private const string FullName = "Steve J Gordon";
  5. private static readonly NameParser Parser = new NameParser();
  6.  
  7. [Benchmark(Baseline = true)]
  8. public void GetLastName()
  9. {
  10. Parser.GetLastName(FullName);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement