This commit is contained in:
despiegk 2025-04-20 06:44:39 +02:00
parent e1ea2c06cd
commit 7dff7ecc5e
5 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,5 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use ourdb::{OurDB, OurDBConfig, OurDBSetArgs};
use std::path::PathBuf;
use tempfile::tempdir;
fn criterion_benchmark(c: &mut Criterion) {

View File

@ -1,6 +1,6 @@
use ourdb::{OurDB, OurDBConfig, OurDBSetArgs};
use std::path::PathBuf;
use std::time::{Duration, Instant};
use std::time::Instant;
fn main() -> Result<(), ourdb::Error> {
// Create a temporary directory for the database

View File

@ -1,5 +1,4 @@
use ourdb::{OurDB, OurDBConfig, OurDBSetArgs};
use std::path::PathBuf;
fn main() -> Result<(), ourdb::Error> {
// Create a temporary directory for the database

View File

@ -1,5 +1,4 @@
use ourdb::{OurDB, OurDBConfig, OurDBSetArgs};
use std::path::PathBuf;
use std::time::{Duration, Instant};
fn main() -> Result<(), ourdb::Error> {

View File

@ -294,7 +294,7 @@ fn calculate_crc(data: &[u8]) -> u32 {
#[cfg(test)]
mod tests {
use std::path::PathBuf;
use super::*;
use crate::{OurDB, OurDBConfig, OurDBSetArgs};
use std::env::temp_dir;
use std::time::{SystemTime, UNIX_EPOCH};