Compare commits

..

No commits in common. "349ae52629d77a47197899849a3947466c8b8781" and "092aebd5fcc73450faa24949d0b9164418abac29" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -112,14 +112,14 @@ jobs:
if [ -z "$artifact_url" ]; then if [ -z "$artifact_url" ]; then
echo "No benchmark artifact found!" echo "No benchmark artifact found!"
mkdir -p benchmark-report exit 1
echo '<!DOCTYPE html><html><head><title>No Benchmarks</title></head><body><h1>No benchmarks available</h1></body></html>' > benchmark-report/index.html
exit 0
fi fi
curl -L -H "Authorization: Bearer ${{ secrets.CUSTOM_GH_TOKEN }}" \ curl -L -H "Authorization: Bearer ${{ secrets.CUSTOM_GH_TOKEN }}" \
"$artifact_url" -o benchmark-report.zip "$artifact_url" -o benchmark-report.zip
# Print all files in the current directory # Print all files in the current directory
echo "Files in the current directory:" echo "Files in the current directory:"
ls -al ls -al

View File

@ -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::{DateFreq, DatesList}, utils::{BDatesList, BDateFreq},
}; };
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> =
DatesList::from_n_periods("2000-01-01".to_string(), DateFreq::Daily, size) BDatesList::from_n_periods("2000-01-01".to_string(), BDateFreq::Daily, size)
.unwrap() .unwrap()
.list() .list()
.unwrap(); .unwrap();