mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-19 12:29:34 +08:00
Deprecate NO_PARAMS in favor of passing an empty array
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
use bencher::{benchmark_group, benchmark_main, Bencher};
|
||||
use rusqlite::{Connection, NO_PARAMS};
|
||||
use rusqlite::Connection;
|
||||
|
||||
fn bench_execute(b: &mut Bencher) {
|
||||
let db = Connection::open_in_memory().unwrap();
|
||||
let sql = "PRAGMA user_version=1";
|
||||
b.iter(|| db.execute(sql, NO_PARAMS).unwrap());
|
||||
b.iter(|| db.execute(sql, []).unwrap());
|
||||
}
|
||||
|
||||
fn bench_execute_batch(b: &mut Bencher) {
|
||||
|
Reference in New Issue
Block a user