[Haskell-cafe] Re: String vs ByteString
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
- lazy text: 0.749s
- strict text: 0.927s
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe