Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
c1319217
Commit
c1319217
authored
Apr 06, 2011
by
andrex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added benchmarks for bltoolkit
parent
7535cb7d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
.hgignore
.hgignore
+2
-1
PerformanceTests.cs
PerformanceTests.cs
+4
-3
SqlMapper.csproj
SqlMapper.csproj
+6
-0
BLToolkit.4.dll
bltoolkit/BLToolkit.4.dll
+0
-0
No files found.
.hgignore
View file @
c1319217
/*.suo
bin/*
obj/*
\ No newline at end of file
obj/*
/*.user
\ No newline at end of file
PerformanceTests.cs
View file @
c1319217
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Data.SqlClient
;
using
BLToolkit.Data
;
using
SqlMapper.Linq2Sql
;
using
System.Data.Linq
;
using
System.Diagnostics
;
...
...
@@ -13,7 +13,6 @@ namespace SqlMapper
{
class
PerformanceTests
{
class
Test
{
public
static
Test
Create
(
Action
<
int
>
iteration
,
string
name
)
...
...
@@ -126,12 +125,14 @@ public void Run(int iterations)
.
SetInt32
(
"id"
,
id
)
.
List
(),
"NHibernate SQL"
);
var
nhSession2
=
NHibernateHelper
.
OpenSession
();
tests
.
Add
(
id
=>
nhSession2
.
CreateQuery
(
@"from Post as p where p.Id = :id"
)
.
SetInt32
(
"id"
,
id
)
.
List
(),
"NHibernate HQL"
);
// bltoolkit
var
db1
=
new
DbManager
(
Program
.
GetOpenConnection
());
tests
.
Add
(
id
=>
db1
.
SetCommand
(
"select * from Posts where Id = @id"
,
db1
.
Parameter
(
"id"
,
id
)).
ExecuteList
<
Post
>(),
"BLToolkit"
);
// HAND CODED
...
...
SqlMapper.csproj
View file @
c1319217
...
...
@@ -35,6 +35,9 @@
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"BLToolkit.4"
>
<HintPath>
bltoolkit\BLToolkit.4.dll
</HintPath>
</Reference>
<Reference
Include=
"Iesi.Collections"
>
<HintPath>
NHibernate\Iesi.Collections.dll
</HintPath>
</Reference>
...
...
@@ -156,6 +159,9 @@
<Content
Include=
"NHibernate\hibernate.cfg.xml"
/>
<Content
Include=
"NHibernate\Post.hbm.xml"
/>
</ItemGroup>
<ItemGroup>
<Folder
Include=
"bltoolkit\"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
...
...
bltoolkit/BLToolkit.4.dll
0 → 100644
View file @
c1319217
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment