/// Saves benchmark results to a JSON file
Saves benchmark results to a JSON file
Saves benchmark results to a JSON file
pub fn save(&self, path: &Path) -> io::Result<()> {
        let f = fs::File::create(path)?;
        serde_json::to_writer_pretty(f, &self)?;
        Ok(())
    }
pub fn save ( & self , path : & Path ) -> io :: Result < ( ) > { let f = fs :: File :: create ( path ) ? ; serde_json :: to_writer_pretty ( f , & self ) ? ; Ok ( ( ) ) }
Saves benchmark results to a JSON file
Saves benchmark results to a JSON file
&self
path
&Path