<commit_before>use rm::linalg::matrix::Matrix;
use test::Bencher;

#[bench]
fn empty(b: &mut Bencher) {
    b.iter(|| 1)
}

#[bench]
fn mat_mul(b: &mut Bencher) {

	let a = Matrix::new(10,10, vec![2.0;100]);
	let c = Matrix::new(10,10, vec![3.0; 100]);

    b.iter(|| &a * &c)
}<commit_msg>Adding benchmark test for detemrinant.<commit_after>use rm::linalg::matrix::Matrix;
use test::Bencher;

#[bench]
fn empty(b: &mut Bencher) {
    b.iter(|| 1)
}

#[bench]
fn mat_mul(b: &mut Bencher) {

	let a = Matrix::new(10,10, vec![2.0;100]);
	let c = Matrix::new(10,10, vec![3.0;100]);

    b.iter(|| &a * &c)
}

#[bench]
fn mat_add(b: &mut Bencher) {
	let a = Matrix::new(10,10, vec![2.0;100]);
	let c = Matrix::new(10,10, vec![3.0;100]);

    b.iter(|| &a + &c)
}

#[bench]
fn mat_det(b: &mut Bencher) {
	let a = Matrix::new(10,10, vec![2.0;100]);

	b.iter(|| a.det());
}
{'fraction_non_alphanumeric': 0.24826789838337182, 'fraction_numerical': 0.07505773672055427, 'mean_word_length': 4.351851851851852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2123823', 'n_tokens_mistral': 436, 'n_tokens_neox': 409, 'n_words': 86}