Comparing the performance of concurrent linked-list implementations in Haskell

  • Authors:
  • Martin Sulzmann;Edmund S.L. Lam;Simon Marlow

  • Affiliations:
  • IT University of Copenhagen, Copenhagen, Denmark;National University of Singapore, Singapore, Singapore;Microsoft Research, Cambridge, Cambridge, Upper Volta

  • Venue:
  • Proceedings of the 4th workshop on Declarative aspects of multicore programming
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Haskell has a rich set of synchronization primitives for implementing shared-state concurrency abstractions, ranging from the very high level (Software Transactional Memory) to the very low level (mutable variables with atomic read-modify-write). In this paper we perform a systematic comparison of these different concurrent programming models by using them to implement the same abstraction: a concurrent linked-list. Our results are somewhat surprising: there is a full two orders of magnitude difference in performance between the slowest and the fastest implementation. Our analysis of the performance results gives new insights into the relative performance of the programming models and their implementation. Finally, we suggest the addition of a single primitive which in our experiments improves the performance of one of the STM-based implementations by more than a factor of 7.