Skip to content

Commit fdf31fb

Browse files
committedAug 30, 2017
Updated to latest released versions of all packages
1 parent 7b18804 commit fdf31fb

7 files changed

+26
-30
lines changed
 

‎CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
0.1.1
2+
Switched to the newly hackage-released 'serialise' package from the previously unreleased 'binary-serialise-cbor' package
3+
Updated all packages to the latest available version
4+

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Time and size benchmarks for the following Haskell serialization libraries:
33

44
| Package | Laziness | Compatibility |
55
| --- | --- | --- |
6-
| [store-0.4.2](https://hackage.haskell.org/package/store) | Strict | Haskell-Same-Architecture |
6+
| [store-0.4.3.1](https://hackage.haskell.org/package/store) | Strict | Haskell-Same-Architecture |
77
| [packman-0.3.0](http://hackage.haskell.org/package/packman) | Lazy | Haskell-Same-Architecture |
88
| [cereal-0.5.4.0](http://hackage.haskell.org/package/cereal) | Strict | Haskell |
99
| [binary-0.8.5.1](http://hackage.haskell.org/package/binary) | Lazy | Haskell |
1010
| [binary-serialise-cbor-0.1.1.0](https://github.com/well-typed/binary-serialise-cbor) | Lazy | Multi-Language |
11-
| [flat-0.2.2](https://github.com/tittoassini/flat) | Strict | Multi-Language |
11+
| [flat-0.3](https://github.com/tittoassini/flat) | Strict | Multi-Language |
1212

1313
Compatibility Levels (lowest to highest):
1414
* Haskell-Same-Architecture

‎report.json

+1-1
Large diffs are not rendered by default.

‎serialization.cabal

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: serialization
2-
version: 0.1.0.0
3-
-- synopsis:
4-
-- description:
5-
-- license:
2+
version: 0.1.1
3+
synopsis: Time and size benchmarks for the most popular Haskell serialization libraries
64
license-file: LICENSE
75
author: Ömer Sinan Ağacan
86
maintainer: omeragacan@gmail.com
9-
-- copyright:
10-
-- category:
117
build-type: Simple
12-
-- extra-source-files:
138
cabal-version: >=1.10
149

1510
library
@@ -25,7 +20,7 @@ benchmark all
2520
QuickCheck,
2621
base >=4.8 && <4.10,
2722
binary >=0.8 && <0.9,
28-
binary-serialise-cbor,
23+
serialise,
2924
bytestring,
3025
cereal >=0.5.1 && <0.6,
3126
containers >= 0.5.6.2,
@@ -42,4 +37,4 @@ benchmark all
4237
hs-source-dirs: src
4338
default-language: Haskell2010
4439
ghc-options: -Wall -fno-warn-orphans -O2
45-
--ghc-options: -Wall -O2 -ddump-simpl -dsuppress-idinfo -ddump-to-file
40+
--ghc-options: -Wall -O2 -ddump-simpl -dsuppress-idinfo -ddump-to-file

‎src/Dataset.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
module Dataset(carsData,irisData) where
66
import Control.DeepSeq
77
import qualified Data.Binary as B
8-
import Data.Binary.Serialise.CBOR as CBOR
8+
-- import Data.Binary.Serialise.CBOR as CBOR
9+
import Codec.Serialise as CBOR
910
import qualified Data.Flat as F
1011
import qualified Data.Serialize as C
1112
import qualified Data.Store as S

‎src/Main.hs

+5-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import Data.Typeable
2222
import Criterion.Types
2323
-- import Data.Bifunctor
2424
import qualified Data.Binary as B
25-
import Data.Binary.Serialise.CBOR as CBOR
25+
-- import Data.Binary.Serialise.CBOR as CBOR
26+
import Codec.Serialise as CBOR
2627
-- import Data.List
2728
-- import Data.Ord
2829
import GHC.Generics
@@ -182,17 +183,17 @@ instance (S.Store a, NFData a) => Serialize PkgStore a where
182183

183184
instance (F.Flat a, NFData a) => Serialize PkgFlat a where
184185
{-# NOINLINE serialize #-}
185-
serialize _ = return . force . LBS.toStrict . F.flat
186+
serialize _ = return . force . F.flat
186187
{-# NOINLINE deserialize #-}
187-
deserialize _ = return . force . fromRight . F.unflat . LBS.fromStrict
188+
deserialize _ = return . force . fromRight . F.unflat
188189

189190
pkgs :: (NFData a,C.Serialize a,Typeable a,Serialise a,S.Store a,F.Flat a,B.Binary a) => [(String,a -> IO BS.ByteString,BS.ByteString -> IO a)]
190191
pkgs = [("store",serialize PkgStore,deserialize PkgStore)
191192
,("flat",serialize PkgFlat,deserialize PkgFlat)
192193
,("binary",serialize PkgBinary,deserialize PkgBinary)
193194
,("cereal",serialize PkgCereal,deserialize PkgCereal)
194195
,("packman",serialize PkgPackman,deserialize PkgPackman)
195-
,("binary_serialise_cbor",serialize PkgCBOR,deserialize PkgCBOR)
196+
,("serialise",serialize PkgCBOR,deserialize PkgCBOR)
196197
]
197198

198199
prop :: Serialize lib (BinTree Int) => lib -> Property

‎stack.yaml

+8-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ghc 7.10.3
2-
resolver: lts-6.30
2+
resolver: lts-6.35
33

44
# ghc 8.0.1
55
# PROB: packman won't compile
@@ -9,24 +9,19 @@ resolver: lts-6.30
99
packages:
1010
- '.'
1111

12-
# - ../flat
13-
14-
- location:
15-
git: https://github.com/well-typed/binary-serialise-cbor
16-
commit: bfbbc3cc741ffa8a6ad3a23ae77f004e8c0e3620
17-
extra-dep: true
18-
1912
flags:
20-
binary-serialise-cbor:
21-
newtime15: true
13+
serialise:
14+
newtime15: true
2215

2316
extra-deps:
2417
- packman-0.3.0
2518
- binary-0.8.5.1
2619
- cereal-0.5.4.0
27-
- flat-0.2.2
28-
- store-0.4.2
29-
- store-core-0.4
20+
- flat-0.3
21+
- store-0.4.3.1
22+
- store-core-0.4.1
23+
- serialise-0.1.0.0
24+
- cborg-0.1.1.0
3025
- th-utilities-0.2.0.1
3126
- datasets-0.2.1
3227
- criterion-1.1.4.0

0 commit comments

Comments
 (0)
Please sign in to comment.