You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lock_table.rs
    path of file: ./repos/tikv/components/concurrency_manager/benches
    
    the code of the file until where you have to start completion: // Copyright 2021 TiKV Project Authors. Licensed under Apache-2.0.

#![feature(test)]

use std::{borrow::Cow, hint::black_box, mem::forget};

use concurrency_manager::ConcurrencyManager;
use criterion::*;
use futures::executor::block_on;
use kvproto::kvrpcpb::IsolationLevel;
use rand::prelude::*;
use txn_types::{Key, Lock, LockType, TsSet};

c
    
fn bench_range_check(c: &mut Criterion) {
    let cm = prepare_cm();
    let ts_set = TsSet::Empty;
    c.bench_function("range_check_1k_in_10k_locks", |b| {
        b.iter(|| {
            let start = thread_rng().gen_range(0u8..230);
            let start_key = Key::from_raw(&[start]);
            let end_key = Key::from_raw(&[start + 25]);
            // The key range is roughly 1/10 the key space.
            let _ = cm.read_range_check(Some(&start_key), Some(&end_key), |key, l| {
                Lock::check_ts_conflict(
                    Cow::Borrowed(l),
                    key,
                    1.into(),
                    &ts_set,
                    IsolationLevel::Si,
                )
            });
        })
    });
}