Skip to content

Commit 33e4094

Browse files
committed
Benchmark fixes + added more properties to test object
1 parent e11abf2 commit 33e4094

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

MapDataReader.Benchmarks/Program.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public static void Setup()
6363
{
6464
//create datatable with test data
6565
_dt = new DataTable();
66-
_dt.Columns.AddRange(new[] { new DataColumn("String1", typeof(string)), new DataColumn("String2", typeof(string)), new DataColumn("Int", typeof(string)) });
66+
_dt.Columns.AddRange(new[] { new DataColumn("String1", typeof(string)), new DataColumn("String2", typeof(string)), new DataColumn("String3", typeof(string)), new DataColumn("Int", typeof(int)), new DataColumn("Int2", typeof(int)) });
6767
for (int i = 0; i < 1000; i++)
6868
{
69-
_dt.Rows.Add("xxx", "yyy", 123);
69+
_dt.Rows.Add("xxx", "yyy", "zzz", 123, 321);
7070
}
7171
}
7272
}
@@ -76,6 +76,8 @@ public class TestClass
7676
{
7777
public string String1 { get; set; }
7878
public string String2 { get; set; }
79+
public string String3 { get; set; }
7980
public string Int { get; set; }
81+
public string Int2 { get; set; }
8082
}
8183
}

0 commit comments

Comments
 (0)