Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/kolmodin/binary. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Apr 19, 2016
  2. Sep 28, 2015
    • basvandijk's avatar
      Optimize roll by using foldl' instead of foldr · 1f643cbc
      basvandijk authored
      The "roll" benchmarks in the get executable show the difference:
      
        get roll
        benchmarking roll/foldr
        time                 547.4 ms   (537.8 ms .. 553.5 ms)
                             1.000 R²   (1.000 R² .. 1.000 R²)
        mean                 549.4 ms   (547.2 ms .. 550.4 ms)
        std dev              1.857 ms   (0.0 s .. 1.896 ms)
        variance introduced by outliers: 19% (moderately inflated)
      
        benchmarking roll/foldl'
        time                 434.7 ms   (426.4 ms .. 443.1 ms)
                             1.000 R²   (1.000 R² .. 1.000 R²)
        mean                 433.7 ms   (432.3 ms .. 434.7 ms)
        std dev              1.472 ms   (0.0 s .. 1.696 ms)
        variance introduced by outliers: 19% (moderately inflated)
      
      The "Integer/decode" benchmark shows the actual decoding speed.
      First the old implementation based on foldr:
      
        get Integer/decode
        benchmarking Integer/decode
        time                 552.9 ms   (540.2 ms .. 569.3 ms)
                             1.000 R²   (1.000 R² .. 1.000 R²)
        mean                 558.2 ms   (556.1 ms .. 559.3 ms)
        std dev              1.824 ms   (0.0 s .. 1.906 ms)
        variance introduced by outliers: 19% (moderately inflated)
      
      The new implementation based on foldl':
      
        get Integer/decode
        benchmarking Integer/decode
        time                 457.5 ms   (406.2 ms .. 505.6 ms)
                             0.998 R²   (0.994 R² .. 1.000 R²)
        mean                 455.9 ms   (448.3 ms .. 462.3 ms)
        std dev              10.11 ms   (0.0 s .. 11.02 ms)
        variance introduced by outliers: 19% (moderately inflated)
      1f643cbc
  3. Aug 09, 2015
  4. Sep 25, 2014
  5. Mar 05, 2013
  6. Mar 01, 2013
  7. Feb 28, 2013
    • Lennart Kolmodin's avatar
      Fix the benchmark. · 18fc3b59
      Lennart Kolmodin authored
      Broke it during the "cleanup"...
      18fc3b59
    • Lennart Kolmodin's avatar
      Clean up <|> benchmark. · b97698b4
      Lennart Kolmodin authored
      Also add attoparsec to do the same <|> benchmark.
      For attoparsec, we bench with a strict bytestring,
      with a lazy bytestring with only one chunk, and a
      lazy bytestring with many chunks.
      b97698b4
  8. Feb 20, 2013
  9. Oct 23, 2012
  10. Oct 04, 2012
  11. Sep 16, 2012
  12. Jul 15, 2012
Loading