<commit_before>#include "cpm/cpm.hpp"

#include <thread>

constexpr std::chrono::nanoseconds operator ""_ns(unsigned long long us){
    return std::chrono::nanoseconds(us);
}

struct test { std::size_t d; };
void randomize(test&){}

int main(){
    cpm::benchmark<> bench;

    bench.measure_simple("simple_a", [](std::size_t d){ std::this_thread::sleep_for(d * 1_ns ); });
    bench.measure_simple("simple_b", [](std::size_t d){ std::this_thread::sleep_for(d * 2_ns ); });

    test a{3};
    test b{5};
    bench.measure_global("global_a", [&a](std::size_t d){ std::this_thread::sleep_for(d * a.d * 1_ns ); }, a);<commit_msg>Update test<commit_after>#include "cpm/cpm.hpp"

#include <thread>

constexpr std::chrono::nanoseconds operator ""_ns(unsigned long long us){
    return std::chrono::nanoseconds(us);
}

struct test { std::size_t d; };
void randomize(test&){}

int main(){
    cpm::benchmark<> bench;

    bench.start();

    bench.measure_simple("simple_a", [](std::size_t d){ std::this_thread::sleep_for(d * 1_ns ); });
    bench.measure_simple("simple_b", [](std::size_t d){ std::this_thread::sleep_for(d * 2_ns ); });

    test a{3};
    test b{5};
    bench.measure_global("global_a", [&a](std::size_t d){ std::this_thread::sleep_for(d * a.d * 1_ns ); }, a);
{'fraction_non_alphanumeric': 0.20125786163522014, 'fraction_numerical': 0.007861635220125786, 'mean_word_length': 5.333333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4842964', 'n_tokens_mistral': 497, 'n_tokens_neox': 481, 'n_words': 89}