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: dts_libs.rs
    path of file: ./repos/stc/crates/stc_ts_type_checker/benches
    
    the code of the file until where you have to start completion: #![feature(test)]

extern crate test;

use std::{
    hint::black_box,
    path::{Path, PathBuf},
    process::{Command, Stdio},
    sync::Arc,
};

use stc_ts_builtin_types::Lib;
use stc_ts_env::{Env, ModuleConfig};
use stc_ts_file_analyzer::env::EnvFactory;
use stc_ts_module_loader::resolvers::node::NodeResolver;
use stc_ts_type_checker::{
    loader::{DefaultFileLoader, ModuleLoader},
    Checker,
};
use swc_common::{
    errors::{ColorConfig, Handler},
    FileName,
};
use swc_ecma_ast::EsVersion;
use test::Bencher;

#[bench]
fn rxjs(b: &mut Bencher) {
    let dir = clone("https://github.com/ReactiveX/rxjs.git", "7.0.0-beta.7");
    run_bench(b, &dir.join("src").join("index.ts"));
}

fn clone(git_url: &str, tag: &str) -> PathBuf {
    let dir = PathBuf::from(env!("OUT_DIR"
    
fn run_bench(b: &mut Bencher, path: &Path) {
    ::testing::run_test2(false, |cm, _| {
        let handler = Handler::with_tty_emitter(ColorConfig::Always, true, false, Some(cm.clone()));

        let handler = Arc::new(handler);

        let env = Env::simple(
            Default::default(),
            EsVersion::latest(),
            ModuleConfig::None,
            &Lib::load("es2020.full"),
        );
        b.iter(|| {
            let mut checker = Checker::new(
                cm.clone(),
                handler.clone(),
                env.clone(),
                None,
                Box::new(ModuleLoader::new(cm.clone(), env.clone(), NodeResolver, DefaultFileLoader)),
            );

            let id = checker.check(Arc::new(FileName::Real(path.to_path_buf())));
            black_box(checker.take_errors());
            black_box(checker.take_dts(id));
        });

        Ok(())
    })
    .unwrap();
}