Rust编写的JavaScript引擎,该项目是一个试验性质的项目。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
270 B

#[macro_use]
extern crate criterion;
use boa::realm::Realm;
use criterion::Criterion;
fn create_realm(c: &mut Criterion) {
c.bench_function("Create Realm", move |b| b.iter(|| Realm::create()));
}
criterion_group!(benches, create_realm);
criterion_main!(benches);