Skip to content

Commit

Permalink
chore: add main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
dancixx committed May 15, 2024
1 parent 6161a69 commit a40a130
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use std::time::Instant;

use stochastic_rs::{noises::fgn, utils::Generator};

fn main() {
let m = 2000;
let hurst = 0.5;
let n = 50000;
let fgn = fgn::FgnFft::new(hurst, n, None, None);

let start = Instant::now();
for _ in 0..m {
fgn.sample();
}
println!("elasped {}", start.elapsed().as_secs_f64());
}

0 comments on commit a40a130

Please sign in to comment.