Commit 0151dea8 authored by Ffloriel's avatar Ffloriel Committed by Nick Craver

Markdown tables (#800)

Markdown tables instead of html
“Can be faster” in correct row
parent ee0b246f
...@@ -120,109 +120,39 @@ The performance tests are broken in to 3 lists: ...@@ -120,109 +120,39 @@ The performance tests are broken in to 3 lists:
### Performance of SELECT mapping over 500 iterations - POCO serialization ### Performance of SELECT mapping over 500 iterations - POCO serialization
<table>
<tr>
<th>Method</th> | Method | Duration | Remarks |
<th>Duration</th> | --------------------------------------------------- | -------- | ------- |
<th>Remarks</th> | Hand coded (using a `SqlDataReader`) | 47ms |
</tr> | Dapper `ExecuteMapperQuery` | 49ms |
<tr> | [ServiceStack.OrmLite](https://github.com/ServiceStack/ServiceStack.OrmLite) (QueryById) | 50ms |
<td>Hand coded (using a <code>SqlDataReader</code>)</td> | [PetaPoco](http://www.toptensoftware.com/petapoco/) | 52ms | [Can be faster](http://www.toptensoftware.com/blog/posts/94-PetaPoco-More-Speed) |
<td>47ms</td> | BLToolkit | 80ms |
<td rowspan="9"><a href="http://www.toptensoftware.com/blog/posts/94-PetaPoco-More-Speed">Can be faster</a></td> | SubSonic CodingHorror | 107ms |
</tr> | NHibernate SQL | 104ms |
<tr> | Linq 2 SQL `ExecuteQuery` | 181ms |
<td>Dapper <code>ExecuteMapperQuery<Post></code></td> | Entity framework `ExecuteStoreQuery` | 631ms |
<td>49ms</td>
</tr>
<tr>
<td><a href="https://github.com/ServiceStack/ServiceStack.OrmLite">ServiceStack.OrmLite</a> (QueryById)</td>
<td>50ms</td>
</tr>
<tr>
<td><a href="http://www.toptensoftware.com/petapoco/">PetaPoco</a></td>
<td>52ms</td>
</tr>
<tr>
<td>BLToolkit</td>
<td>80ms</td>
</tr>
<tr>
<td>SubSonic CodingHorror</td>
<td>107ms</td>
</tr>
<tr>
<td>NHibernate SQL</td>
<td>104ms</td>
</tr>
<tr>
<td>Linq 2 SQL <code>ExecuteQuery</code></td>
<td>181ms</td>
</tr>
<tr>
<td>Entity framework <code>ExecuteStoreQuery</code></td>
<td>631ms</td>
</tr>
</table>
### Performance of SELECT mapping over 500 iterations - dynamic serialization ### Performance of SELECT mapping over 500 iterations - dynamic serialization
<table> | Method | Duration | Remarks |
<tr> | -------------------------------------------------------- | -------- | ------- |
<th>Method</th> | Dapper `ExecuteMapperQuery` (dynamic) | 48ms |
<th>Duration</th> | [Massive](https://github.com/FransBouma/Massive) | 52ms |
<th>Remarks</th> | [Simple.Data](https://github.com/markrendle/Simple.Data) | 95ms |
</tr>
<tr>
<td>Dapper <code>ExecuteMapperQuery</code> (dynamic)</td>
<td>48ms</td>
<td rowspan="3">&nbsp;</td>
</tr>
<tr>
<td><a href="https://github.com/FransBouma/Massive">Massive</a></td>
<td>52ms</td>
</tr>
<tr>
<td><a href="https://github.com/markrendle/Simple.Data">Simple.Data</a></td>
<td>95ms</td>
</tr>
</table>
### Performance of SELECT mapping over 500 iterations - typical usage ### Performance of SELECT mapping over 500 iterations - typical usage
<table> | Method | Duration | Remarks |
<tr> | ------------------------------------- | -------- | ------- |
<th>Method</th> | Linq 2 SQL CompiledQuery | 81ms | Not super typical involves complex code |
<th>Duration</th> | NHibernate HQL | 118ms |
<th>Remarks</th> | Linq 2 SQL | 559ms |
</tr> | Entity framework | 859ms |
<tr> | SubSonic ActiveRecord.SingleOrDefault | 3619ms |
<td>Linq 2 SQL CompiledQuery</td>
<td>81ms</td>
<td>Not super typical involves complex code</td>
</tr>
<tr>
<td>NHibernate HQL</td>
<td>118ms</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Linq 2 SQL</td>
<td>559ms</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Entity framework</td>
<td>859ms</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>SubSonic ActiveRecord.SingleOrDefault</td>
<td>3619ms</td>
<td>&nbsp;</td>
</tr>
</table>
Performance benchmarks are available [here](https://github.com/StackExchange/Dapper/tree/master/Dapper.Tests.Performance). Performance benchmarks are available [here](https://github.com/StackExchange/Dapper/tree/master/Dapper.Tests.Performance).
......
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