benchmark results

This commit is contained in:
KoenDR06 2025-12-07 14:10:19 +01:00
parent 1e297ced3e
commit 9901c708d2
8 changed files with 62 additions and 0 deletions

View file

@ -1,3 +1,11 @@
{-
Benchmark 1: ./out
Time (mean ± σ): 9.3 ms ± 1.2 ms [User: 7.2 ms, System: 1.9 ms]
Range (min max): 7.8 ms 12.0 ms 10 runs
-}
module Main where
convertToInts = map (\it -> (if head it == 'L' then -1 else 1) * read (drop 1 it))

View file

@ -1,3 +1,11 @@
{-
Benchmark 1: ./out
Time (mean ± σ): 10.357 s ± 0.237 s [User: 10.297 s, System: 0.045 s]
Range (min max): 9.868 s 10.727 s 10 runs
-}
module Main where
import Data.List (find, nub)

View file

@ -1,3 +1,11 @@
{-
Benchmark 1: ./out
Time (mean ± σ): 61.9 ms ± 1.3 ms [User: 58.6 ms, System: 3.0 ms]
Range (min max): 60.4 ms 64.4 ms 10 runs
-}
module Main where
import Data.List (tails, singleton)

View file

@ -1,3 +1,11 @@
{-
Benchmark 1: ./out
Time (mean ± σ): 1.417 s ± 0.016 s [User: 1.410 s, System: 0.005 s]
Range (min max): 1.398 s 1.443 s 10 runs
-}
module Main where
import Debug.Trace (trace)

View file

@ -1,3 +1,11 @@
{-
Benchmark 1: ./out
Time (mean ± σ): 9.8 ms ± 1.3 ms [User: 6.7 ms, System: 2.9 ms]
Range (min max): 8.3 ms 12.0 ms 10 runs
-}
module Main where
import Data.List (find)

View file

@ -1,3 +1,11 @@
{-
Benchmark 1: ./out
Time (mean ± σ): 11.8 ms ± 1.3 ms [User: 8.3 ms, System: 3.3 ms]
Range (min max): 9.9 ms 13.5 ms 10 runs
-}
module Main where
import Data.List (find, transpose)

View file

@ -1,3 +1,11 @@
{-
Benchmark 1: ./out
Time (mean ± σ): 19.7 ms ± 1.7 ms [User: 15.9 ms, System: 3.6 ms]
Range (min max): 17.7 ms 22.9 ms 10 runs
-}
module Main where
import Data.List (singleton, elemIndex, nub)

View file

@ -1,3 +1,9 @@
{-
< BENCHMARK RESULTS HERE >
-}
module Main where
part1 :: String -> Int