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