mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 07:39:59 +00:00
Compare commits
1 Commits
c39021456a
...
ebf2e23030
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ebf2e23030 |
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}"""
|
||||
|
||||
all_sizes = sorted(
|
||||
list(set(size for test_data in results.values() for size in test_data.keys())),
|
||||
key=(lambda x: int(x.split("x")[0])),
|
||||
list(set(size for test_data in results.values() for size in test_data.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
|
||||
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
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
@ -236,8 +236,8 @@ fn run_benchmarks_large(c: &mut Criterion) {
|
||||
fn config_small_arrays() -> Criterion {
|
||||
Criterion::default()
|
||||
.sample_size(500)
|
||||
.measurement_time(Duration::from_millis(100))
|
||||
.warm_up_time(Duration::from_millis(5))
|
||||
.measurement_time(Duration::from_millis(500))
|
||||
.warm_up_time(Duration::from_millis(50))
|
||||
}
|
||||
|
||||
fn config_medium_arrays() -> Criterion {
|
||||
@ -254,7 +254,6 @@ fn config_large_arrays() -> Criterion {
|
||||
.warm_up_time(Duration::from_millis(200))
|
||||
}
|
||||
|
||||
|
||||
criterion_group!(
|
||||
name = benches_small_arrays;
|
||||
config = config_small_arrays();
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
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)]
|
||||
pub struct Matrix<T> {
|
||||
rows: usize,
|
||||
|
Loading…
x
Reference in New Issue
Block a user