Dotty Documentation

0.6.0-bin-SNAPSHOT

object Bench
extends Driver

A main class for running compiler benchmarks. Can instantiate a given number of compilers and run each (sequentially) a given number of times on the same sources.

[-] Constructors

[-] Members

[+] @sharable private var numRuns : Int
[+] override def doCompile ( compiler: Compiler , fileNames: List [ String ] ) ( implicit ctx: Context ) : Reporter
[+] def extractNumArg ( args: Array [ String ] , name: String , default: Int ) : ( Int, Array [ String ] )
[+] private def ntimes ( n: Int ) ( op: => Reporter ) : Reporter
[+] override def process ( args: Array [ String ] , rootCtx: Context ) : Reporter

Entry point to the compiler using a custom Context.

In most cases, you do not need a custom Context and should instead use one of the other overloads of process. However, the other overloads cannot be overriden, instead you should override this one which they call internally.

Usage example: [[https://github.com/lampepfl/dotty/tree/master/test/test/OtherEntryPointsTest.scala]] in method runCompilerWithContext