<commit_before>import Criterion.Main

import Projekt.Core
import Projekt.Algorithmen
import FFSandbox (f2,e2f2,e2e2f2,e4f2,e4f2Mipo)

benchFindIrreds =
  [ bgroup "findIrreds e2f2" 
    [ bench "3" $ whnf findIrreds (getAllMonicPs es1 [3])
    , bench "5" $ whnf findIrreds (getAllMonicPs es1 [5])
    , bench "7" $ whnf findIrreds (getAllMonicPs es1 [7])
    , bench "9" $ whnf findIrreds (getAllMonicPs es1 [9]) ]
  , bgroup "findIrreds e2e2f2" 
    [ bench "3" $ whnf findIrreds (getAllMonicPs es2 [3])
    , bench "5" $ whnf findIrreds (getAllMonicPs es2 [5]) ] ]
  where es1 = elems e2f2
        es2 = elems e2e2f2

main = defaultMain benchFindIrreds
<commit_msg>add Bench<commit_after>import Criterion.Main

import Projekt.Core
import Projekt.Algorithmen
import FFSandbox (f2,e2f2,e2e2f2,e4f2,e4f2Mipo)

benchFindIrreds =
  [ bgroup "findIrreds e2f2" 
    [ bench "3" $ whnf findIrreds (getAllMonicPs es1 [3])
    , bench "5" $ whnf findIrreds (getAllMonicPs es1 [5])
    , bench "7" $ whnf findIrreds (getAllMonicPs es1 [7])
    , bench "9" $ whnf findIrreds (getAllMonicPs es1 [9]) ]
  , bgroup "findIrreds e2e2f2" 
    [ bench "3" $ whnf findIrreds (getAllMonicPs es2 [3])
    , bench "5" $ whnf findIrreds (getAllMonicPs es2 [5])    
    , bench "7" $ whnf findIrreds (getAllMonicPs es2 [7])    
    , bench "9" $ whnf findIrreds (getAllMonicPs es2 [9]) ] ]
  where es1 = elems e2f2
        es2 = elems e2e2f2

main = defaultMain benchFindIrreds

{'fraction_non_alphanumeric': 0.11126373626373626, 'fraction_numerical': 0.059065934065934064, 'mean_word_length': 3.761437908496732, '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': '4840291', 'n_tokens_mistral': 645, 'n_tokens_neox': 643, 'n_words': 151}