Github user hvanhovell commented on the pull request:
https://github.com/apache/spark/pull/10335#issuecomment-165849874
@gatorsmile small follow-up on the benchmarking. If I execute the following
code (note the ```.rdd.map(_.getLong(0))```):
val startTime = System.currentTimeMillis;
sqlContext.range(0, 10000000, 1, 15).rdd.map(_.getLong(0)).collect();
val endTime = System.currentTimeMillis;
val elapsed = (endTime - startTime)/ 1000.0
I get to an average of 845 ms per run (versus 477 for ```sc.range```).
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]