soenkehahn / string-conversions

Simplifies dealing with different types for strings
BSD 3-Clause "New" or "Revised" License
26 stars 6 forks source link

Add some basic benchmarks #27

Open mordae opened 2 years ago

mordae commented 2 years ago

They measure almost all possible combinations of conversions for short, medium and large strings. String conversions were omitted, because they are by definition always hopelessly slow.

mordae commented 2 years ago

Alternative LazyByteString to LazyText seems significantly faster, but I have only measured the situation after text-2.0. It could have been totally different before.

I believe that since we are picking a default of sorts for the user, we should make sure to pick the best conversion approach and this choice should be informed -- at least a little -- by some measurements.

For easy to grok HTML output use:

cabal run bench -- -o benchmark.html