Skip to content

KebabGGbab/Benchmark-Build-Empty-String

Repository files navigation

Benchmark Build Empty String

Use this benchmark to find out which is the fastest and least expensive way to declare or create an empty string. The following possible options for declaring an empty string take part in the benchmark:

  • String.Empty
  • ""
  • new StringBuilder().ToString()
  • new string("")
    The result is shown in the screenshot: image

About

Benchmark for creating an empty string

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages