You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by viirya <gi...@git.apache.org> on 2016/05/10 03:16:06 UTC
[GitHub] spark pull request: [SPARK-15240][SQL] Use buffer variables for up...
Github user viirya commented on the pull request:
https://github.com/apache/spark/pull/13018#issuecomment-218048888
Benchmark:
val N = 50L << 20
runBenchmark("typed aggregation", N) {
sparkSession.range(N).map(x => (x & 65535, x)).groupByKey(_._1).agg(
typed.sumLong(_._2),
typed.sumLong(_._2),
typed.sumLong(_._2),
typed.sumLong(_._2)).collect()
}
old:
Java HotSpot(TM) 64-Bit Server VM 1.8.0_25-b17 on Linux 3.13.0-57-generic
Westmere E56xx/L56xx/X56xx (Nehalem-C)
typed aggregation: Best/Avg Time(ms) Rate(M/s) Per Row(ns) Relative
------------------------------------------------------------------------------------------------
typed aggregation wholestage off 37928 / 38519 1.4 723.4 1.0X
typed aggregation wholestage on 27031 / 27954 1.9 515.6 1.4X
new:
Java HotSpot(TM) 64-Bit Server VM 1.8.0_25-b17 on Linux 3.13.0-57-generic
Westmere E56xx/L56xx/X56xx (Nehalem-C)
typed aggregation: Best/Avg Time(ms) Rate(M/s) Per Row(ns) Relative
------------------------------------------------------------------------------------------------
typed aggregation wholestage off 38037 / 38317 1.4 725.5 1.0X
typed aggregation wholestage on 19215 / 19441 2.7 366.5 2.0X
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org