mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Replace BDatesList and BDateFreq with DatesList and DateFreq in benchmarks
This commit is contained in:
parent
092aebd5fc
commit
9279939c30
@ -5,7 +5,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
|
|||||||
use rustframe::{
|
use rustframe::{
|
||||||
frame::{Frame, RowIndex},
|
frame::{Frame, RowIndex},
|
||||||
matrix::{BoolMatrix, Matrix, SeriesOps},
|
matrix::{BoolMatrix, Matrix, SeriesOps},
|
||||||
utils::{BDatesList, BDateFreq},
|
utils::{DateFreq, DatesList},
|
||||||
};
|
};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ fn matrix_operations_benchmark(c: &mut Criterion, sizes: &[usize]) {
|
|||||||
fn generate_frame(size: usize) -> Frame<f64> {
|
fn generate_frame(size: usize) -> Frame<f64> {
|
||||||
let data: Vec<f64> = (0..size * size).map(|x| x as f64).collect();
|
let data: Vec<f64> = (0..size * size).map(|x| x as f64).collect();
|
||||||
let dates: Vec<NaiveDate> =
|
let dates: Vec<NaiveDate> =
|
||||||
BDatesList::from_n_periods("2000-01-01".to_string(), BDateFreq::Daily, size)
|
DatesList::from_n_periods("2000-01-01".to_string(), DateFreq::Daily, size)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.list()
|
.list()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user