Skip to content

Commit

Permalink
Rename the snappy benchmark to speedy
Browse files Browse the repository at this point in the history
--HG--
rename : tests/Snappy.hs => tests/Speedy.hs
  • Loading branch information
bos committed Mar 27, 2011
1 parent 3bd8a0c commit c8298d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .hgignore
@@ -1,6 +1,6 @@
^(?:dist|\.DS_Store)$
.*\.(?:aux|dSYM|h[ip]|o|orig|out|pdf|prof|ps|rej)$
^tests/(?:qc|snappy)$
^tests/(?:qc|speedy)$

syntax: glob
*~
Expand Down
6 changes: 3 additions & 3 deletions tests/Makefile
@@ -1,13 +1,13 @@
ghc := ghc
ghcflags := -threaded -O

all: qc snappy
all: qc speedy

qc: Properties.hs
$(ghc) $(ghcflags) --make -o $@ $^

snappy: Snappy.hs
speedy: Speedy.hs
$(ghc) $(ghcflags) -O --make -o $@ $^

clean:
-rm -f qc snappy *.o *.hi
-rm -f qc speedy *.o *.hi
3 changes: 1 addition & 2 deletions tests/Properties.hs
Expand Up @@ -27,9 +27,8 @@ instance Arbitrary (Compressed B.ByteString) where
arbitrary = (Compressed . B.compress) <$> arbitrary

compress_eq n bs = L.fromChunks [B.compress bs] == L.compress (rechunk n bs)
decompress_eq n bs0 =
decompress_eq n (Compressed bs) =
L.fromChunks [B.decompress bs] == L.decompress (rechunk n bs)
where bs = B.compress bs0

rechunk :: Int -> B.ByteString -> L.ByteString
rechunk n = L.fromChunks . go
Expand Down
File renamed without changes.

0 comments on commit c8298d3

Please sign in to comment.