mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 10:40:01 +00:00
Compare commits
No commits in common. "9702b6d5c456ed7d50e7059547f467199b503696" and "dfe259a3710fe61e34e180b2149849175b76433f" have entirely different histories.
9702b6d5c4
...
dfe259a371
3
.github/scripts/custom_benchmark_report.py
vendored
3
.github/scripts/custom_benchmark_report.py
vendored
@ -247,8 +247,7 @@ def generate_html_table_with_links(
|
|||||||
{html_doc_end}"""
|
{html_doc_end}"""
|
||||||
|
|
||||||
all_sizes = sorted(
|
all_sizes = sorted(
|
||||||
list(set(size for test_data in results.values() for size in test_data.keys())),
|
list(set(size for test_data in results.values() for size in test_data.keys()))
|
||||||
key=(lambda x: int(x.split("x")[0])),
|
|
||||||
)
|
)
|
||||||
all_test_names = sorted(list(results.keys()))
|
all_test_names = sorted(list(results.keys()))
|
||||||
|
|
||||||
|
10
.github/workflows/run-benchmarks.yml
vendored
10
.github/workflows/run-benchmarks.yml
vendored
@ -36,16 +36,6 @@ jobs:
|
|||||||
- name: Run benchmarks
|
- name: Run benchmarks
|
||||||
run: cargo bench --features bench
|
run: cargo bench --features bench
|
||||||
|
|
||||||
- name: Generate custom benchmark reports
|
|
||||||
run: |
|
|
||||||
if [ -d ./target/criterion ]; then
|
|
||||||
echo "Found benchmark reports, generating custom report..."
|
|
||||||
else
|
|
||||||
echo "No benchmark reports found, skipping custom report generation."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
python .github/scripts/custom_benchmark_report.py
|
|
||||||
|
|
||||||
- name: Upload benchmark reports
|
- name: Upload benchmark reports
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -236,8 +236,8 @@ fn run_benchmarks_large(c: &mut Criterion) {
|
|||||||
fn config_small_arrays() -> Criterion {
|
fn config_small_arrays() -> Criterion {
|
||||||
Criterion::default()
|
Criterion::default()
|
||||||
.sample_size(500)
|
.sample_size(500)
|
||||||
.measurement_time(Duration::from_millis(100))
|
.measurement_time(Duration::from_millis(500))
|
||||||
.warm_up_time(Duration::from_millis(5))
|
.warm_up_time(Duration::from_millis(50))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn config_medium_arrays() -> Criterion {
|
fn config_medium_arrays() -> Criterion {
|
||||||
@ -254,7 +254,6 @@ fn config_large_arrays() -> Criterion {
|
|||||||
.warm_up_time(Duration::from_millis(200))
|
.warm_up_time(Duration::from_millis(200))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
criterion_group!(
|
criterion_group!(
|
||||||
name = benches_small_arrays;
|
name = benches_small_arrays;
|
||||||
config = config_small_arrays();
|
config = config_small_arrays();
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use std::ops::{Add, BitAnd, BitOr, BitXor, Div, Index, IndexMut, Mul, Not, Sub};
|
use std::ops::{Add, BitAnd, BitOr, BitXor, Div, Index, IndexMut, Mul, Not, Sub};
|
||||||
|
|
||||||
/// A column‑major 2D matrix of `T`. Index as `Array(row, column)`.
|
/// A column‑major 2D matrix of `T`
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct Matrix<T> {
|
pub struct Matrix<T> {
|
||||||
rows: usize,
|
rows: usize,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user