public IEnumerable <string[]> Data()
        {
            var meaningfulStructure = MeaningfulStructure.CreateStub();
            var serializedStructure = JsonSerializer.Serialize(meaningfulStructure);

            yield return(new[] { serializedStructure });

            yield return(DuplicateString(serializedStructure, 10));

            yield return(DuplicateString(serializedStructure, 100));

            yield return(DuplicateString(serializedStructure, 1000));
        }
示例#2
0
        public StringJoinAndConcatBenchmark()
        {
            var meaningfulStructure = MeaningfulStructure.CreateStub();

            serializedStructure = JsonSerializer.Serialize(meaningfulStructure);
        }