rust/src/test/run-pass/bitv-perf-test.rs

14 lines
210 B
Rust

extern mod std;
use std::bitv::*;
fn bitv_test() -> bool {
let v1 = ~Bitv(31, false);
let v2 = ~Bitv(31, true);
v1.union(v2);
true
}
fn main() {
do iter::repeat(10000) || {bitv_test()};
}