<commit_before>/*
 * default_benches.cpp
 *
 * Various "default" benchmarks.
 */

#include "asm_methods.h"
#include "benches.hpp"

extern "C" {
/* misc benches */
bench2_f misc_add_loop32;
bench2_f misc_add_loop64;
}

template <typename TIMER>
void register_misc(BenchmarkList& list) {
    std::shared_ptr<BenchmarkGroup> default_group = std::make_shared<BenchmarkGroup>("misc");

    using default_maker = BenchmarkMaker<TIMER>;

    auto benches = std::vector<Benchmark> {
        default_maker::template make_bench<misc_add_loop32>("32-bit add-loop", 1, []{ return nullptr; }, 100000),
        default_maker::template make_bench<misc_add_loop64>("64-bit add-loop", 1, []{ return nullptr; }, 100000)
    };

    default_group->add(benches);
    list.push_back(default_group);
}

#define REG_DEFAULT(CLOCK) template void register_misc<CLOCK>(BenchmarkList& list);

ALL_TIMERS_X(REG_DEFAULT)



<commit_msg>increase iterations for peter's test<commit_after>/*
 * default_benches.cpp
 *
 * Various "default" benchmarks.
 */

#include "asm_methods.h"
#include "benches.hpp"

extern "C" {
/* misc benches */
bench2_f misc_add_loop32;
bench2_f misc_add_loop64;
}

template <typename TIMER>
void register_misc(BenchmarkList& list) {
    std::shared_ptr<BenchmarkGroup> default_group = std::make_shared<BenchmarkGroup>("misc");

    using default_maker = BenchmarkMaker<TIMER>;

    const uint32_t iters = 10*1000*1000;
    auto benches = std::vector<Benchmark> {
        default_maker::template make_bench<misc_add_loop32>("32-bit add-loop", 1, []{ return nullptr; }, iters),
        default_maker::template make_bench<misc_add_loop64>("64-bit add-loop", 1, []{ return nullptr; }, iters)
    };

    default_group->add(benches);
    list.push_back(default_group);
}

#define REG_DEFAULT(CLOCK) template void register_misc<CLOCK>(BenchmarkList& list);

ALL_TIMERS_X(REG_DEFAULT)




{'fraction_non_alphanumeric': 0.13272921108742003, 'fraction_numerical': 0.029850746268656716, 'mean_word_length': 5.256666666666667, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '1727151', 'n_tokens_mistral': 722, 'n_tokens_neox': 642, 'n_words': 118}