File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,24 +10,24 @@ public class OverwriteBenchmarks
1010 [ GlobalSetup ]
1111 public void Setup ( )
1212 {
13- smallBuilder = new StringBuilder ( "Hello World! This is a small test string." ) ;
13+ smallBuilder = new ( "Hello World! This is a small test string." ) ;
1414
15- mediumBuilder = new StringBuilder ( ) ;
15+ mediumBuilder = new ( ) ;
1616 for ( var i = 0 ; i < 100 ; i ++ )
1717 {
1818 mediumBuilder . Append ( "This is sentence number " ) ;
1919 mediumBuilder . Append ( i ) ;
2020 mediumBuilder . Append ( ". " ) ;
2121 }
2222
23- largeBuilder = new StringBuilder ( ) ;
23+ largeBuilder = new ( ) ;
2424 for ( var i = 0 ; i < 10000 ; i ++ )
2525 {
2626 largeBuilder . Append ( "Content " ) ;
2727 }
2828
2929 // Force multiple chunks
30- multiChunkBuilder = new StringBuilder ( ) ;
30+ multiChunkBuilder = new ( ) ;
3131 for ( var i = 0 ; i < 50 ; i ++ )
3232 {
3333 multiChunkBuilder . Append ( "Chunk " ) ;
You can’t perform that action at this time.
0 commit comments