Evaluating end-to-end optimization for data analytics applications in weld
Authors:
Open Access
- 1 May 2018
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the VLDB Endowment
- Vol. 11 (9) , 1002-1015
Abstract
Modern analytics applications use a diverse mix of libraries and functions. Unfortunately, there is no optimization across these libraries, resulting in performance penalties as high as an order of magnitude in many applications. To address this problem, we proposed Weld, a common runtime for existing data analytics libraries that performs key physical optimizations such as pipelining under existing, imperative library APIs. In this work, we further develop the Weld vision by designing an automatic adaptive optimizer for Weld applications, and evaluating its impact on realistic data science workloads. Our optimizer eliminates multiple forms of overhead that arise when composing imperative libraries like Pandas and NumPy, and uses lightweight measurements to make data-dependent decisions at run-time in ad-hoc workloads where no statistics are available, with sub-second overhead. We also evaluate which optimizations have the largest impact in practice and whether Weld can be integrated into libraries incrementally. Our results are promising: using our optimizer, Weld accelerates data science workloads by up to 23X on one thread and 80X on eight threads, and its adaptive optimizations provide up to a 3.75X speedup over rule-based optimization. Moreover, Weld provides benefits if even just 4--5 operators in a library are ported to use it. Our results show that common runtime designs like Weld may be a viable approach to accelerate analytics.Keywords
This publication has 29 references indexed in Scilit:
- Main-memory scan sharing for multi-core CPUsProceedings of the VLDB Endowment, 2008
- Adaptive Query ProcessingFoundations and Trends® in Databases, 2007
- Monad Comprehensions: A Versatile Representation for Queries2004
- Cilk: An Efficient Multithreaded Runtime SystemJournal of Parallel and Distributed Computing, 1996
- Comprehension syntaxACM SIGMOD Record, 1994
- Maximizing loop parallelism and improving data locality via loop fusion and distribution1994
- Implementation of a portable nested data-parallel languageACM SIGPLAN Notices, 1993
- Encapsulation of parallelism in the Volcano query processing systemACM SIGMOD Record, 1990
- Multiple-query optimizationACM Transactions on Database Systems, 1988
- Basic Linear Algebra Subprograms for Fortran UsageACM Transactions on Mathematical Software, 1979