mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-22 01:52:45 +03:00
Update the benchmark
Results: benchmarking largeResultInVector time 652.5 μs (647.1 μs .. 660.1 μs) 0.999 R² (0.998 R² .. 1.000 R²) mean 659.8 μs (654.2 μs .. 673.0 μs) std dev 28.95 μs (14.60 μs .. 52.43 μs) variance introduced by outliers: 36% (moderately inflated) benchmarking largeResultInList time 692.7 μs (686.9 μs .. 700.0 μs) 0.999 R² (0.998 R² .. 0.999 R²) mean 708.7 μs (701.4 μs .. 721.6 μs) std dev 31.04 μs (22.26 μs .. 49.84 μs) variance introduced by outliers: 36% (moderately inflated) benchmarking manyLargeResults time 794.9 ms (778.6 ms .. 817.3 ms) 1.000 R² (1.000 R² .. 1.000 R²) mean 810.9 ms (803.9 ms .. 816.7 ms) std dev 9.339 ms (0.0 s .. 10.14 ms) variance introduced by outliers: 19% (moderately inflated) benchmarking manySmallResults time 35.02 ms (34.67 ms .. 35.26 ms) 0.999 R² (0.999 R² .. 1.000 R²) mean 34.93 ms (34.60 ms .. 35.22 ms) std dev 609.2 μs (433.5 μs .. 924.9 μs)
This commit is contained in:
parent
39a54c7cef
commit
3e6ce84d1e
@ -26,6 +26,8 @@ main =
|
||||
,
|
||||
sessionBench "largeResultInList" sessionWithSingleLargeResultInList
|
||||
,
|
||||
sessionBench "manyLargeResults" sessionWithManyLargeResults
|
||||
,
|
||||
sessionBench "manySmallResults" sessionWithManySmallResults
|
||||
]
|
||||
where
|
||||
@ -45,13 +47,17 @@ sessionWithSingleLargeResultInVector :: B.Session (Vector (Int64, Int64))
|
||||
sessionWithSingleLargeResultInVector =
|
||||
B.query () queryWithManyRowsInVector
|
||||
|
||||
sessionWithManyLargeResults :: B.Session [Vector (Int64, Int64)]
|
||||
sessionWithManyLargeResults =
|
||||
replicateM 1000 (B.query () queryWithManyRowsInVector)
|
||||
|
||||
sessionWithSingleLargeResultInList :: B.Session (List (Int64, Int64))
|
||||
sessionWithSingleLargeResultInList =
|
||||
B.query () queryWithManyRowsInList
|
||||
|
||||
sessionWithManySmallResults :: B.Session (Vector (Int64, Int64))
|
||||
sessionWithManySmallResults :: B.Session [(Int64, Int64)]
|
||||
sessionWithManySmallResults =
|
||||
F.replicateM 1000 (B.query () queryWithSingleRow)
|
||||
replicateM 1000 (B.query () queryWithSingleRow)
|
||||
|
||||
|
||||
-- * Statements
|
||||
|
Loading…
Reference in New Issue
Block a user