mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-12-27 12:35:50 +03:00
Update benchmarks
This commit is contained in:
parent
5c094a9aed
commit
e511cb7114
@ -6,7 +6,7 @@ import qualified Hasql.Serialization as HS
|
||||
import qualified Hasql.Deserialization as HD
|
||||
|
||||
|
||||
select1 :: Int -> H.Query () (Vector Int64)
|
||||
select1 :: Int -> H.Query () ([] Int64)
|
||||
select1 amount =
|
||||
(sql, mempty, deserializer, True)
|
||||
where
|
||||
@ -14,9 +14,9 @@ select1 amount =
|
||||
"values " <>
|
||||
mconcat (intersperse ", " (replicate amount "(1)"))
|
||||
deserializer =
|
||||
HD.rowsVector (HD.value HD.int8)
|
||||
HD.rowsList (HD.value HD.int8)
|
||||
|
||||
select4 :: Int -> H.Query () (Vector (Int64, Int64, Int64, Int64))
|
||||
select4 :: Int -> H.Query () ([] (Int64, Int64, Int64, Int64))
|
||||
select4 amount =
|
||||
(sql, mempty, deserializer, True)
|
||||
where
|
||||
@ -24,4 +24,4 @@ select4 amount =
|
||||
"values " <>
|
||||
mconcat (intersperse ", " (replicate amount "(1, 2, 3, 4)"))
|
||||
deserializer =
|
||||
HD.rowsVector ((,,,) <$> HD.value HD.int8 <*> HD.value HD.int8 <*> HD.value HD.int8 <*> HD.value HD.int8)
|
||||
HD.rowsList ((,,,) <$> HD.value HD.int8 <*> HD.value HD.int8 <*> HD.value HD.int8 <*> HD.value HD.int8)
|
||||
|
Loading…
Reference in New Issue
Block a user