mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-05 07:50:52 +08:00
update
10
性能.md
10
性能.md
@@ -24,11 +24,11 @@ class Song {
|
||||
|
||||
## 测试结果
|
||||
|
||||
| | 数量 | Query\<Class\> | Query\<Tuple\> | Query\<dynamic\> | ToList |
|
||||
| - | - | - | - | - | - |
|
||||
| Dapper | 131072 | 623.4959ms | 424.2411ms | 644.8897ms | - |
|
||||
| FreeSql | 131072 | 647.0552ms | 577.3532ms | 944.7454ms | 622.8980ms |
|
||||
| | | | | (不推荐) | (推荐) |
|
||||
| | 数量 | Query\<Class\> | Query\<Tuple\> | Query\<dynamic\> |
|
||||
| - | - | - | - | - |
|
||||
| Dapper.Query(sql) | 131072 | 623.4959ms | 424.2411ms | 644.8897ms |
|
||||
| FreeSql.Query(sql) | 131072 | 647.0552ms | 577.3532ms | 944.7454ms |
|
||||
| FreeSql.ToList | 131072 | 622.8980ms | 435.3532ms | - |
|
||||
|
||||
FreeSql以微小的性能差距输了,原因是支持了更多的类型,某些类型解析需要Parse、递归或循环处理。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user