Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Pure implementation of the digest package

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Setup.lhs
Octocat-spinner-32 digest-pure.cabal
README.md

digest-pure

Introduction

This is a pure Haskell implementation of the digest package.

Unit test

  • For random ByteStrings: does the output of digest-pure match that of digest?

Benchmarks

Benchmarked on a Mac Mini 2010, 2.4GHz, using Data.ByteString.Lazy, best out of five.

adler32

$ time ./adler32 data 
165386662

real  0m0.447s
user  0m0.150s
sys   0m0.295s

adler32-pure

$ time ./adler32-pure data
165386662

real  0m2.224s
user  0m1.924s
sys   0m0.298s
Something went wrong with that request. Please try again.