Skip to content

Make Scanner a newtype#3

Closed
informatikr wants to merge 1 commit intoYuras:masterfrom
informatikr:master
Closed

Make Scanner a newtype#3
informatikr wants to merge 1 commit intoYuras:masterfrom
informatikr:master

Conversation

@informatikr
Copy link
Copy Markdown
Contributor

Performance is the same for most of the Redis examples, but much faster for
multibulk. GHC perhaps optimizes it better when used in non-inlined functions.

  • Before:

benchmarking multi/Scanner
time 556.1 ns (538.6 ns .. 582.3 ns)
0.989 R² (0.982 R² .. 0.995 R²)
mean 560.5 ns (544.6 ns .. 577.8 ns)
std dev 57.16 ns (44.10 ns .. 73.20 ns)
variance introduced by outliers: 90% (severely inflated)

  • After:

benchmarking multi/Scanner
time 374.0 ns (370.4 ns .. 377.8 ns)
0.999 R² (0.998 R² .. 0.999 R²)
mean 375.7 ns (370.9 ns .. 380.6 ns)
std dev 16.45 ns (13.53 ns .. 20.47 ns)
variance introduced by outliers: 62% (severely inflated)

Performance is the same for most of the Redis examples, but much faster for
multibulk. GHC perhaps optimizes it better when used in non-inlined functions.

* Before:

benchmarking multi/Scanner
time                 556.1 ns   (538.6 ns .. 582.3 ns)
                     0.989 R²   (0.982 R² .. 0.995 R²)
mean                 560.5 ns   (544.6 ns .. 577.8 ns)
std dev              57.16 ns   (44.10 ns .. 73.20 ns)
variance introduced by outliers: 90% (severely inflated)

* After:

benchmarking multi/Scanner
time                 374.0 ns   (370.4 ns .. 377.8 ns)
                     0.999 R²   (0.998 R² .. 0.999 R²)
mean                 375.7 ns   (370.9 ns .. 380.6 ns)
std dev              16.45 ns   (13.53 ns .. 20.47 ns)
variance introduced by outliers: 62% (severely inflated)
@Yuras
Copy link
Copy Markdown
Owner

Yuras commented Apr 2, 2016

Good catch, thank you!

Merged as 19c6649 (it required rebase)

@Yuras Yuras closed this Apr 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants