兰博达斯之战
Clash of the Lambdas
摘要:
Java 8中引入的Java语言完成了静态类型的主流语言,同时具有面向对象和函数特性。在Java中使用Java语言的主要动机是促进基于流的声明式API,从而更容易并行。在本文中,我们评估了流处理中使用的lambda抽象的性能影响,对于在虚拟机(C#,F#,Java和Scala)和运行时平台(Linux和Windows上的JVM,Windows上的.NET Java,Linux上的Mono)上运行的各种高级语言。此外,我们评估了两个优化库(ScalaBlitz和LinqOptimizer)可以为C#,F#和Scala提供的性能增益。我们的研究基于小规模的吞吐量基准,非常小心地隔离不同的因素,咨询所涉及系统的专家,并确定原因和机会。我们发现,Java表现出很高的实现成熟度,这是一个主导因素的基准。与此同时,优化框架对于常见的查询模式可以非常有效。
英文摘要:
The introduction of lambdas in Java 8 completes the slate of statically-typed, mainstream languages with both object-oriented and functional features. The main motivation for lambdas in Java has been to facilitate stream-based declarative APIs, and, therefore, easier parallelism. In this paper, we evaluate the performance impact of lambda abstraction employed in stream processing, for a variety of high-level languages that run on a virtual machine (C#, F#, Java and Scala) and runtime platforms (JVM on Linux and Windows, .NET CLR for Windows, Mono for Linux). Furthermore, we evaluate the performance gain that two optimizing libraries (ScalaBlitz and LinqOptimizer) can offer for C#, F# and Scala. Our study is based on small-scale throughput-benchmarking, with significant care to isolate different factors, consult experts on the systems involved, and identify causes and opportunities. We find that Java exhibits high implementation maturity, which is a dominant factor in benchmarks. At the same time, optimizing frameworks can be highly effective for common query patterns.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。