In [1]:



:: problems summary ::
:::: WARNINGS
	Unable to reparse com.github.alexarchambault.jupyter#jupyter-scala-api_2.10.5;0.2.0-SNAPSHOT from sonatype-snapshots, using Fri Jun 05 09:13:44 BST 2015

	Choosing sonatype-snapshots for com.github.alexarchambault.jupyter#jupyter-scala-api_2.10.5;0.2.0-SNAPSHOT

	Unable to reparse com.github.alexarchambault#ammonite-api_2.10.5;0.3.1-SNAPSHOT from sonatype-snapshots, using Thu Sep 10 11:28:42 BST 2015

	Choosing sonatype-snapshots for com.github.alexarchambault#ammonite-api_2.10.5;0.3.1-SNAPSHOT

	Unable to reparse com.github.alexarchambault.jupyter#jupyter-api_2.10;0.2.0-SNAPSHOT from sonatype-snapshots, using Mon Jun 01 01:53:32 BST 2015

	Choosing sonatype-snapshots for com.github.alexarchambault.jupyter#jupyter-api_2.10;0.2.0-SNAPSHOT

		module not found: com.github.melrief#purecsv_2.10;0.0.1

	==== local: tried

	  /Users/sbleja/.ivy2/local/com.github.melrief/purecsv_2.10/0.0.1/ivys/ivy.xml

	==== public: tried

	  https://repo1.maven.org/maven2/com/github/melrief/purecsv_2.10/0.0.1/purecsv_2.10-0.0.1.pom

	==== sonatype-snapshots: tried

	  https://oss.sonatype.org/content/repositories/snapshots/com/github/melrief/purecsv_2.10/0.0.1/purecsv_2.10-0.0.1.pom



In [4]:
load.ivy("com.storm-enroute" %% "scalameter" % "0.7")


:: problems summary ::
:::: WARNINGS
	Unable to reparse com.github.alexarchambault.jupyter#jupyter-scala-api_2.10.5;0.2.0-SNAPSHOT from sonatype-snapshots, using Fri Jun 05 09:13:44 BST 2015

	Choosing sonatype-snapshots for com.github.alexarchambault.jupyter#jupyter-scala-api_2.10.5;0.2.0-SNAPSHOT

	Unable to reparse com.github.alexarchambault#ammonite-api_2.10.5;0.3.1-SNAPSHOT from sonatype-snapshots, using Thu Sep 10 11:28:42 BST 2015

	Choosing sonatype-snapshots for com.github.alexarchambault#ammonite-api_2.10.5;0.3.1-SNAPSHOT

	Unable to reparse com.github.alexarchambault.jupyter#jupyter-api_2.10;0.2.0-SNAPSHOT from sonatype-snapshots, using Mon Jun 01 01:53:32 BST 2015

	Choosing sonatype-snapshots for com.github.alexarchambault.jupyter#jupyter-api_2.10;0.2.0-SNAPSHOT

		module not found: com.github.melrief#purecsv_2.10;0.0.1

	==== local: tried

	  /Users/sbleja/.ivy2/local/com.github.melrief/purecsv_2.10/0.0.1/ivys/ivy.xml

	==== public: tried

	  https://repo1.maven.org/maven2/com/github/melrief/purecsv_2.10/0.0.1/purecsv_2.10-0.0.1.pom

	==== sonatype-snapshots: tried

	  https://oss.sonatype.org/content/repositories/snapshots/com/github/melrief/purecsv_2.10/0.0.1/purecsv_2.10-0.0.1.pom



In [6]:
import org.scalameter.api._

object RangeBenchmark extends Bench.LocalTime {
  val sizes = Gen.range("size")(300000, 1500000, 300000)

  val ranges = for {
    size <- sizes
  } yield 0 until size

  performance of "Range" in {
    measure method "map" in {
      using(ranges) in {
        r => r.map(_ + 1)
      }
    }
  }
}


import org.scalameter.api._
defined object RangeBenchmark

In [8]:



Compilation Failed
Main.scala:107: value Range is not a member of object cmd4.this.$ref$cmd3.RangeBenchmark
RangeBenchmark.Range
               ^