<commit_before>#![feature(test)]

extern crate test;
extern crate itertools;

use test::{black_box, Bencher};
use itertools::Itertools;

// aproximate 100_000 iterations for each combination
const N1: usize = 100_000;
const N2: usize = 448;
const N3: usize = 86;
const N4: usize = 41;

#[bench]
fn comb_for1(b: &mut Bencher) {
    b.iter(|| {
        for i in 0..N1 {
            black_box(i);
        }
    });
}

#[bench]
fn comb_for2(b: &mut Bencher) {
    b.iter(|| {
        for i in 0..N2 {
            for j in (i + 1)..N2 {
                black_box(i + j);
            }
        }
    });
}

#[bench]
fn comb_for3(b: &mut Bencher) {<commit_msg>Fix typo in code-comment ('aproximate')<commit_after>#![feature(test)]

extern crate test;
extern crate itertools;

use test::{black_box, Bencher};
use itertools::Itertools;

// approximate 100_000 iterations for each combination
const N1: usize = 100_000;
const N2: usize = 448;
const N3: usize = 86;
const N4: usize = 41;

#[bench]
fn comb_for1(b: &mut Bencher) {
    b.iter(|| {
        for i in 0..N1 {
            black_box(i);
        }
    });
}

#[bench]
fn comb_for2(b: &mut Bencher) {
    b.iter(|| {
        for i in 0..N2 {
            for j in (i + 1)..N2 {
                black_box(i + j);
            }
        }
    });
}

#[bench]
fn comb_for3(b: &mut Bencher) {
{'fraction_non_alphanumeric': 0.15078769692423105, 'fraction_numerical': 0.04801200300075019, 'mean_word_length': 2.2222222222222223, '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': '5603121', 'n_tokens_mistral': 547, 'n_tokens_neox': 524, 'n_words': 138}