Commit 727e9252 authored by markrendle's avatar markrendle

Added Simple.Data to performance tests

parent 23cac1fb
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
bin/ bin/
obj/ obj/
/*.user /*.user
_Resharper*
\ No newline at end of file
...@@ -70,6 +70,15 @@ ...@@ -70,6 +70,15 @@
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>OrmLite\ServiceStack.Text.dll</HintPath> <HintPath>OrmLite\ServiceStack.Text.dll</HintPath>
</Reference> </Reference>
<Reference Include="Simple.Data, Version=0.5.10.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>Simple.Data\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="Simple.Data.Ado, Version=0.5.10.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>Simple.Data\Simple.Data.Ado.dll</HintPath>
</Reference>
<Reference Include="Simple.Data.SqlServer, Version=0.5.10.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>Simple.Data\Simple.Data.SqlServer.dll</HintPath>
</Reference>
<Reference Include="SubSonic.Core"> <Reference Include="SubSonic.Core">
<HintPath>SubSonic\SubSonic.Core.dll</HintPath> <HintPath>SubSonic\SubSonic.Core.dll</HintPath>
</Reference> </Reference>
...@@ -185,6 +194,7 @@ ...@@ -185,6 +194,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="bltoolkit\" /> <Folder Include="bltoolkit\" />
<Folder Include="Simple.Data\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Dapper\Dapper.csproj"> <ProjectReference Include="..\Dapper\Dapper.csproj">
......
...@@ -152,6 +152,10 @@ public void Run(int iterations) ...@@ -152,6 +152,10 @@ public void Run(int iterations)
var db1 = new DbManager(Program.GetOpenConnection()); var db1 = new DbManager(Program.GetOpenConnection());
tests.Add(id => db1.SetCommand("select * from Posts where Id = @id", db1.Parameter("id", id)).ExecuteList<Post>(), "BLToolkit"); tests.Add(id => db1.SetCommand("select * from Posts where Id = @id", db1.Parameter("id", id)).ExecuteList<Post>(), "BLToolkit");
// Simple.Data
var sdb = Simple.Data.Database.OpenConnection(Program.connectionString);
tests.Add(id => sdb.Posts.FindById(id), "Simple.Data");
//ServiceStack.OrmLite Provider: //ServiceStack.OrmLite Provider:
/* /*
* Unhandled Exception: System.FormatException: Input string was not in a correct f * Unhandled Exception: System.FormatException: Input string was not in a correct f
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment