com.twitter.cassovary

PerformanceBenchmark

object PerformanceBenchmark extends App with GzipGraphDownloader

Performance test.

Performs PageRank and Personalized PageRank algorithms on several real life graphs from http://snap.stanford.edu/data/. Two small graphs are stored under resources, you can benchmark on larger graphs by providing additional graph urls (they will be downloaded).

Usage: PerformanceBenchmark -h to get started.

Example Usages: -local=facebook -globalpr Benchmarks global pagerank on the local facebook graph

-url=http://snap.stanford.edu/data/cit-HepTh.txt.gz -ppr Downloads the graph from that URL into local subdir cache/ and runs personalized pagerank on it

By default runs every test 10 times and reports average time taken.

See: http://snap.stanford.edu/data/

Linear Supertypes
GzipGraphDownloader, App, DelayedInit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PerformanceBenchmark
  2. GzipGraphDownloader
  3. App
  4. DelayedInit
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val CACHE_DIRECTORY: String

    Directory to store cached graphs downloaded from the web.

  7. val DEFAULT_REPS: Int

    Number of repeats of every benchmark.

  8. val SMALL_FILES_DIRECTORY: String

    Path to the directory storing small graphs.

  9. val adjacencyList: Flag[Boolean]

  10. def args: Array[String]

    Attributes
    protected
    Definition Classes
    App
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. val benchmarks: ListBuffer[(DirectedGraph) ⇒ OperationBenchmark]

    Builders of algorithms to be benchmarked.

  13. def cacheRemoteFile(url: String): (String, String)

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. val defaultLocalGraphFile: String

  16. def delayedInit(body: ⇒ Unit): Unit

    Definition Classes
    App → DelayedInit
  17. def downloadAndUnpack(source: String, target: String): Unit

    Downloads a gzip file from a given source and unpacks it to single file target.

    Downloads a gzip file from a given source and unpacks it to single file target.

    Definition Classes
    GzipGraphDownloader
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. val executionStart: Long

    Definition Classes
    App
  21. val files: ListBuffer[(String, String)]

    Files to be benchmarked as a list of (directory, name) pairs.

  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. val flags: Flags

  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. val getNodeFlag: Flag[Int]

  26. val globalPRFlag: Flag[Boolean]

  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. val helpFlag: Flag[Boolean]

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. val localFileFlag: Flag[String]

  31. def main(args: Array[String]): Unit

    Definition Classes
    App
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. val pprFlag: Flag[Boolean]

  36. val remoteFileFlag: Flag[String]

  37. val reps: Flag[Int]

  38. lazy val smallFiles: List[(String, String)]

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from GzipGraphDownloader

Inherited from App

Inherited from DelayedInit

Inherited from AnyRef

Inherited from Any

Ungrouped