[Haskell-cafe] Re: String vs ByteString

Bryan O'Sullivan bos at serpentine.com
Sun Aug 15 14:04:01 EDT 2010

On Sat, Aug 14, 2010 at 6:05 PM, Bryan O'Sullivan <bos at serpentine.com>wrote:

>    - If it's not good enough, and the fault lies in a library you chose,
>    report a bug and provide a test case.
> As a case in point, I took the string search benchmark that Daniel shared
on Friday, and boiled it down to a simple test case: how long does it take
to read a 31MB file?

GNU wc -m:

   - en_US.UTF-8: 0.701s


   - lazy text: 1.959s
   - strict text: 3.527s

darcs HEAD:

   - lazy text: 0.749s
   - strict text: 0.927s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100815/2ffd9b48/attachment.html

More information about the Haskell-Cafe mailing list