Explanation

This allows different implementations of Haskell code to be compared to each other.

Each table compares different implementations of the same functionality on different inputs (for all the tests so far the input is the size of data to use).

Each column compares 2 implementations. The number in each cell is how many times longer the second took than the first. For example, suppose that with input 100 A takes 10s and B takes 12s. Then the table would look like:

A -> B
1001.20

Failures, defined as being 1.1 times slower, are shown like this.

If the second implementation is 1.1 times faster then it is shown like this.

Results

Tests/Ptr/FindSpace

Find the first space (character with value 32) in a chunk of memory

Base -> BarelyHaskellBarelyHaskell -> Haskell
0 0.97 1.05
1 1.01 1.00
10 0.97 1.06
100 1.04 1.01
1000 1.22 1.05
10000 2.10 1.07
100000 3.06 1.09
1000000 2.32 1.08
10485760 2.32 1.09

Tests/Ptr/FindWhite

Find the first white space character (character with value 32, 9, 13 or 10) in a chunk of memory

Base -> BarelyHaskellBarelyHaskell -> HaskellHaskell -> NicerHaskell
0 1.03 0.99 1.02
1 0.99 1.03 1.00
10 0.99 1.03 1.08
100 1.00 1.07 1.73
1000 1.12 1.26 5.89
10000 1.43 1.69 10.75
100000 1.63 1.85 12.00
1000000 1.62 1.87 11.83
10485760 1.64 1.86 11.87

Tests/Ptr/Reverse

Make a reversed copy of a chunk of memory

Base -> BarelyHaskellBarelyHaskell -> HaskellBarelyHaskell -> Haskell2
0 0.96 1.41 1.38
1 0.95 1.35 1.31
10 0.97 1.40 1.40
100 0.99 1.72 1.71
1000 1.14 3.81 3.73
10000 1.65 7.54 7.46
100000 1.62 4.35 4.05
1000000 1.56 4.63 4.54
10485760 1.73 4.78 4.50