benchmark results
This commit is contained in:
parent
1e297ced3e
commit
9901c708d2
8 changed files with 62 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue