All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scalameter.Persistor.scala Maven / Gradle / Ivy

The newest version!
package org.scalameter






/** Persistors are used to store historical data about benchmark runs.
 */
trait Persistor {
  def load[T](context: Context): History[T]
  def save[T](context: Context, h: History[T]): Unit
}


object Persistor {
  object None extends Persistor {
    def load[T](context: Context): History[T] = History(Nil)
    def save[T](context: Context, h: History[T]): Unit = {}
  }
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy