mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
18 lines
408 B
Rust
18 lines
408 B
Rust
use std::time::Instant;
|
|
|
|
use anyhow::Ok;
|
|
use cjdic2_core::db::search_yomitan;
|
|
use rusqlite::Connection;
|
|
|
|
fn main() -> Result<(), anyhow::Error> {
|
|
let conn = &mut Connection::open("test.db")?;
|
|
|
|
let start = Instant::now();
|
|
let rs = search_yomitan(conn, "擦る", "する", 10, 0)?;
|
|
println!("{:#?}", rs);
|
|
println!("n={}", rs.len());
|
|
println!("[{:.2?}]", start.elapsed());
|
|
|
|
Ok(())
|
|
}
|