<commit_before>module Main where

import Criterion (bgroup,bench,whnfIO,whnf)
import Criterion.Main (defaultMain)

import qualified HaskellImageProcessingBenchmark.Friday as Friday (
    readPng,threshold)
import qualified HaskellImageProcessingBenchmark.UnmHip as UnmHip (
    readPgm,force,threshold)
import qualified HaskellImageProcessingBenchmark.Yarr as Yarr (
    readPng,force,threshold)
import qualified HaskellImageProcessingBenchmark.Repa as Repa (
    readPng,force,threshold)
import qualified HaskellImageProcessingBenchmark.OpenCV as OpenCV (
    readPng,threshold)

main :: IO ()
main = do
    fridayImage <- Friday.readPng "koblenz.png"
    unmHipImage <- UnmHip.readPgm "koblenz.pgm"
    yarrImage   <- Yarr.readPng   "koblenz.png"
    repaImage   <- Repa.readPng   "koblenz.png"
    openCVImage <- OpenCV.readPng "koblenz.png"
    defaultMain [
        bgroup "readPng" [
            bench "Friday" (whnfIO (Friday.readPng "koblenz.png")),
            bench "Yarr"   (whnfIO (Yarr.readPng   "koblenz.png")),
            bench "Repa"   (whnfIO (Repa.readPng   "koblenz.png")),
            bench "OpenCV" (whnfIO (OpenCV.readPng "koblenz.png"))],
        bgroup "readPgm" [
            bench "UnmHip" (whnfIO (UnmHip.readPgm "koblenz.pgm" >>= UnmHip.force))],
        bgroup "threshold" [
            bench "Friday" (whnf Friday.threshold fridayImage),
            bench "UnmHip" (whnfIO (UnmHip.force (UnmHip.threshold unmHipImage))),
            bench "Yarr"   (whnfIO (Yarr.force   (Yarr.threshold   yarrImage))),
            bench "Repa"   (whnfIO (Repa.force   (Repa.threshold   repaImage))),
            bench "OpenCV" (whnfIO (OpenCV.threshold openCVImage))]]



<commit_msg>do not benchmark readPgm from unmhip<commit_after>module Main where

import Criterion (bgroup,bench,whnfIO,whnf)
import Criterion.Main (defaultMain)

import qualified HaskellImageProcessingBenchmark.Friday as Friday (
    readPng,threshold)
import qualified HaskellImageProcessingBenchmark.UnmHip as UnmHip (
    readPgm,force,threshold)
import qualified HaskellImageProcessingBenchmark.Yarr as Yarr (
    readPng,force,threshold)
import qualified HaskellImageProcessingBenchmark.Repa as Repa (
    readPng,force,threshold)
import qualified HaskellImageProcessingBenchmark.OpenCV as OpenCV (
    readPng,threshold)

main :: IO ()
main = do
    fridayImage <- Friday.readPng "koblenz.png"
    unmHipImage <- UnmHip.readPgm "koblenz.pgm"
    yarrImage   <- Yarr.readPng   "koblenz.png"
    repaImage   <- Repa.readPng   "koblenz.png"
    openCVImage <- OpenCV.readPng "koblenz.png"
    defaultMain [
        bgroup "readPng" [
            bench "Friday" (whnfIO (Friday.readPng "koblenz.png")),
            bench "Yarr"   (whnfIO (Yarr.readPng   "koblenz.png")),
            bench "Repa"   (whnfIO (Repa.readPng   "koblenz.png")),
            bench "OpenCV" (whnfIO (OpenCV.readPng "koblenz.png"))],
        bgroup "threshold" [
            bench "Friday" (whnf Friday.threshold fridayImage),
            bench "UnmHip" (whnfIO (UnmHip.force (UnmHip.threshold unmHipImage))),
            bench "Yarr"   (whnfIO (Yarr.force   (Yarr.threshold   yarrImage))),
            bench "Repa"   (whnfIO (Repa.force   (Repa.threshold   repaImage))),
            bench "OpenCV" (whnfIO (OpenCV.threshold openCVImage))]]




{'fraction_non_alphanumeric': 0.10798548094373865, 'fraction_numerical': 0.0, 'mean_word_length': 3.2892347600518805, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 5, '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': '6044228', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1156, 'n_words': 235}