blob: 50d4282ab12f8b8525abf411fe79aac6ba091892 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Text;
using System.Threading;
public class StringConcat
{
// Objects used by test. init before Main is entered.
const int NUM_ITERS_CONCAT = 10;
const int NUM_ITERS = 5000;
public static String s1 = "11234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s2 = "21234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s3 = "31234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s4 = "41234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s5 = "51234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s6 = "61234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s7 = "71234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s8 = "81234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s9 = "91234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static String s10 = "01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static void Main(string[] p_args)
{
string str = null;
for (long i = 0; i < NUM_ITERS; i++)
{
for (int j = 0; j < NUM_ITERS_CONCAT; j++)
{
str += s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10
+ s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10;
}
str = "";
}
}
}
|