diff --git a/.github/workflows/docs-and-testcov.yml b/.github/workflows/docs-and-testcov.yml
index c946b9b..68bd58c 100644
--- a/.github/workflows/docs-and-testcov.yml
+++ b/.github/workflows/docs-and-testcov.yml
@@ -112,14 +112,14 @@ jobs:
if [ -z "$artifact_url" ]; then
echo "No benchmark artifact found!"
- exit 1
+ mkdir -p benchmark-report
+ echo '
No BenchmarksNo benchmarks available
' > benchmark-report/index.html
+ exit 0
fi
curl -L -H "Authorization: Bearer ${{ secrets.CUSTOM_GH_TOKEN }}" \
"$artifact_url" -o benchmark-report.zip
-
-
# Print all files in the current directory
echo "Files in the current directory:"
ls -al
diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs
index 93cf8cd..e8954c8 100644
--- a/benches/benchmarks.rs
+++ b/benches/benchmarks.rs
@@ -5,7 +5,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
use rustframe::{
frame::{Frame, RowIndex},
matrix::{BoolMatrix, Matrix, SeriesOps},
- utils::{BDatesList, BDateFreq},
+ utils::{DateFreq, DatesList},
};
use std::time::Duration;
@@ -146,7 +146,7 @@ fn matrix_operations_benchmark(c: &mut Criterion, sizes: &[usize]) {
fn generate_frame(size: usize) -> Frame {
let data: Vec = (0..size * size).map(|x| x as f64).collect();
let dates: Vec =
- 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()
.list()
.unwrap();