diff --git a/Garuda.Data.Test/App.config b/Garuda.Data.Test/App.config
new file mode 100644
index 0000000..c91cffd
--- /dev/null
+++ b/Garuda.Data.Test/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Garuda.Data.Test/Garuda.Data.Test.csproj b/Garuda.Data.Test/Garuda.Data.Test.csproj
index fca159d..9770203 100644
--- a/Garuda.Data.Test/Garuda.Data.Test.csproj
+++ b/Garuda.Data.Test/Garuda.Data.Test.csproj
@@ -37,6 +37,7 @@
+
@@ -61,6 +62,9 @@
Garuda.Data
+
+
+
diff --git a/Garuda.Data.Test/PhoenixUnitTest.cs b/Garuda.Data.Test/PhoenixUnitTest.cs
index 7703c48..d9c00c4 100644
--- a/Garuda.Data.Test/PhoenixUnitTest.cs
+++ b/Garuda.Data.Test/PhoenixUnitTest.cs
@@ -3,6 +3,8 @@
using System.Data;
using System.Collections.Generic;
using System.Text;
+using System.Diagnostics;
+using System.IO;
namespace Garuda.Data.Test
{
@@ -302,6 +304,7 @@ public void ExecuteNonQueryUpsert1KBigTable()
[TestMethod]
public void ExecuteQueryBigTable()
{
+ Stopwatch sw = new Stopwatch();
using (IDbConnection c = new PhoenixConnection())
{
c.ConnectionString = this.ConnectionString();
@@ -309,8 +312,11 @@ public void ExecuteQueryBigTable()
CreateBigTestTableIfNotExists(c, false);
- // Query the table
+ // Query the table and measure performance
+ sw.Start();
long rows = QueryAllRows(c, "bigtable", 10);
+ sw.Stop();
+ WriteQueryRowsPerf(rows, sw.ElapsedMilliseconds);
// How many rows did we get back?
this.TestContext.WriteLine("Queried Rows: {0}", rows);
@@ -320,6 +326,17 @@ public void ExecuteQueryBigTable()
}
}
+ private void WriteQueryRowsPerf(long rows, long milliseconds)
+ {
+ string file = System.Configuration.ConfigurationManager.AppSettings["QueryRowsPerfFile"];
+ if(!File.Exists(file))
+ {
+ File.AppendAllText(file, "Timestamp,Rows,Duration(ms)\r\n");
+ }
+
+ File.AppendAllText(file, string.Format("{0},{1},{2}\r\n", DateTime.Now.ToString(), rows, milliseconds));
+ }
+
private void PreparedCmdParameterTest(int rowsToInsert, string sql, List> pFunc, bool assertTotalRows = true)
{
using (IDbConnection c = new PhoenixConnection())
diff --git a/Garuda.Data.Test/Properties/AssemblyInfo.cs b/Garuda.Data.Test/Properties/AssemblyInfo.cs
index c9f93c5..d8f5f9e 100644
--- a/Garuda.Data.Test/Properties/AssemblyInfo.cs
+++ b/Garuda.Data.Test/Properties/AssemblyInfo.cs
@@ -32,4 +32,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.1.*")]
+[assembly: AssemblyVersion("0.3.*")]
diff --git a/Garuda.Data/Garuda.Data.csproj b/Garuda.Data/Garuda.Data.csproj
index 97fe793..88a5d44 100644
--- a/Garuda.Data/Garuda.Data.csproj
+++ b/Garuda.Data/Garuda.Data.csproj
@@ -31,6 +31,7 @@
prompt
4
false
+ bin\Release\Garuda.Data.XML
diff --git a/Garuda.Data/Properties/AssemblyInfo.cs b/Garuda.Data/Properties/AssemblyInfo.cs
index 1b2ff3b..46ee914 100644
--- a/Garuda.Data/Properties/AssemblyInfo.cs
+++ b/Garuda.Data/Properties/AssemblyInfo.cs
@@ -32,4 +32,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.2.*")]
+[assembly: AssemblyVersion("0.3.*")]
diff --git a/GarudaUtil/Properties/AssemblyInfo.cs b/GarudaUtil/Properties/AssemblyInfo.cs
index 066347b..1dab794 100644
--- a/GarudaUtil/Properties/AssemblyInfo.cs
+++ b/GarudaUtil/Properties/AssemblyInfo.cs
@@ -32,4 +32,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.2.*")]
+[assembly: AssemblyVersion("0.3.*")]