|
Scala example source code file (PlusPlus.scala)
The Scala PlusPlus.scala source codepackage scala.collection.parallel.benchmarks.parallel_array import scala.collection.parallel.mutable.ParArray object PlusPlus extends Companion { def benchName = "plusplus"; def apply(sz: Int, parallelism: Int, what: String) = new PlusPlus(sz, parallelism, what) override def comparisons = List() override def defaultSize = 50000 } class PlusPlus(sz: Int, p: Int, what: String) extends Resettable(sz, p, what, new Cont(_), new Array[Any](_), classOf[Cont]) { def companion = PlusPlus val thatarr = new Array[Cont](sz) val thatpa = new ParArray[Cont](sz) def runpar = pa ++ thatpa def runseq = arr ++ thatarr def comparisonMap = collection.Map() } Other Scala examples (source code examples)Here is a short list of links related to this Scala PlusPlus.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.