Github user gatorsmile commented on the pull request:

    https://github.com/apache/spark/pull/10335#issuecomment-165671653
  
    RDD range API: 
    ```
    scala> val startTime = System.currentTimeMillis; sc.range(0, 10000000, 1, 
15).collect(); val endTime = System.currentTimeMillis; val start = new 
Timestamp(startTime); val end = new Timestamp(endTime); val elapsed = (endTime 
- startTime)/ 1000.0
    startTime: Long = 1450412989642
    endTime: Long = 1450412990221
    start: java.sql.Timestamp = 2015-12-17 20:29:49.642
    end: java.sql.Timestamp = 2015-12-17 20:29:50.221
    elapsed: Double = 0.579
    
    scala> val startTime = System.currentTimeMillis; sc.range(0, 10000000, 1, 
15).collect(); val endTime = System.currentTimeMillis; val start = new 
Timestamp(startTime); val end = new Timestamp(endTime); val elapsed = (endTime 
- startTime)/ 1000.0
    startTime: Long = 1450412991330
    endTime: Long = 1450412991892
    start: java.sql.Timestamp = 2015-12-17 20:29:51.33
    end: java.sql.Timestamp = 2015-12-17 20:29:51.892
    elapsed: Double = 0.562
    
    scala> val startTime = System.currentTimeMillis; sc.range(0, 10000000, 1, 
15).collect(); val endTime = System.currentTimeMillis; val start = new 
Timestamp(startTime); val end = new Timestamp(endTime); val elapsed = (endTime 
- startTime)/ 1000.0
    startTime: Long = 1450412995824
    endTime: Long = 1450412996666
    start: java.sql.Timestamp = 2015-12-17 20:29:55.824
    end: java.sql.Timestamp = 2015-12-17 20:29:56.666
    elapsed: Double = 0.842
    ```


---
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]

Reply via email to