• Media type: E-Article
  • Title: AutoBench: comparing the time performance of Haskell programs
  • Contributor: Handley, Martin A. T.; Hutton, Graham
  • imprint: Association for Computing Machinery (ACM), 2018
  • Published in: ACM SIGPLAN Notices
  • Language: English
  • DOI: 10.1145/3299711.3242749
  • ISSN: 1558-1160; 0362-1340
  • Keywords: Computer Graphics and Computer-Aided Design ; Software
  • Origination:
  • Footnote:
  • Description: <jats:p> Two fundamental goals in programming are correctness (producing the right results) and efficiency (using as few resources as possible). Property-based testing tools such as QuickCheck provide a lightweight means to check the correctness of Haskell programs, but what about their efficiency? In this article, we show how QuickCheck can be combined with the Criterion benchmarking library to give a lightweight means to compare the time performance of Haskell programs. We present the design and implementation of the <jats:italic>AutoBench</jats:italic> system, demonstrate its utility with a number of case studies, and find that many QuickCheck correctness properties are also efficiency improvements. </jats:p>