mirror of https://github.com/boa-dev/boa.git
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
13 lines
270 B
5 years ago
|
#[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);
|