Ejemplo n.º 1
0
        public void GlobalSetup()
        {
            _utf16preparedFormat_ = new Utf16PreparedFormat <int, int>(FormatString);
            _utf16preparedFormatN = new NewZString::Cysharp.Text.Utf16PreparedFormat <int, int>(FormatString);

            _utf8preparedFormat_ = new Utf8PreparedFormat <int, int>(FormatString);
            _utf8preparedFormatN = new NewZString::Cysharp.Text.Utf8PreparedFormat <int, int>(FormatString);
        }
Ejemplo n.º 2
0
 public FormatBenchmark()
 {
     x              = int.Parse("100");
     y              = int.Parse("200");
     format         = "x:{0}, y:{1}";
     stringBuilder  = new StringBuilder();
     preparedFormat = new Utf16PreparedFormat <int, int>(format);
 }