Skip to content

Commit

Permalink
Fix incorrect types in the packing benchmark. (#297)
Browse files Browse the repository at this point in the history
Typos in #277; the benchmark names and proto types didn't match up.
  • Loading branch information
judah authored and blackgnezdo committed Dec 20, 2018
1 parent 8f6bc78 commit 123e486
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proto-lens-benchmarks/benchmarks/Packing.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ benchmaker size =
-- (less likely for the legend to overlap results) if smaller results
-- are first.
[ protoBenchmark "int32-packed"
(defMessage & num .~ replicate size 5 ::Int32Unpacked)
(defMessage & num .~ replicate size 5 :: Int32Packed)
, protoBenchmark "int32-unpacked"
(defMessage & num .~ replicate size 5 ::Int32Packed)
(defMessage & num .~ replicate size 5 :: Int32Unpacked)
, protoBenchmark "float-packed"
(defMessage & num .~ replicate size 5 :: FloatPacked)
, protoBenchmark "float-unpacked"
(defMessage & num .~ replicate size 5 :: FloatPacked)
(defMessage & num .~ replicate size 5 :: FloatUnpacked)
]

main :: IO ()
Expand Down

0 comments on commit 123e486

Please sign in to comment.