This project is mirrored from https://github.com/haskell/random. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
  1. 29 Jun, 2011 1 commit
  2. 28 Jun, 2011 18 commits
  3. 27 Jun, 2011 12 commits
  4. 26 Jun, 2011 5 commits
  5. 25 Jun, 2011 2 commits
  6. 24 Jun, 2011 2 commits
    • rrnewton's avatar
      Cleaned up the simple benchmark and added tests for non-Int datatypes. The... · d9a53135
      rrnewton authored
      Cleaned up the simple benchmark and added tests for non-Int datatypes.  The results are a bit surprising.  Float generation is performing badly.
      
      Here are some results from a 3.33ghz Intel Nehalem:
      
        Cost of rdtsc (ffi call):    75
        Approx getCPUTime calls per second: 206,493
        Approx clock frequency:  3,336,174,789
        First, timing with System.Random interface:
          112,276,629 randoms generated [constant zero gen]         ~ 29.71 cycles/int
           14,289,712 randoms generated [System.Random stdGen]      ~ 233 cycles/int
               82,546 randoms generated [System.Random Floats]      ~ 40,416 cycles/int
               83,138 randoms generated [System.Random CFloats]     ~ 40,128 cycles/int
            2,533,007 randoms generated [System.Random Doubles]     ~ 1,317 cycles/int
              841,737 randoms generated [System.Random Integers]    ~ 3,963 cycles/int
            4,704,318 randoms generated [System.Random Bools]       ~ 709 cycles/int
      d9a53135
    • rrnewton's avatar
      Added some very minor comments and a simple benchmarking script. · e7f72c84
      rrnewton authored
      Using this script I saw a 13X regression in stdGen in recent revisions
      vs the 1.0.0.3 version, dropping to only 900K random ints/sec on my
      machine.  However, it was some kind of heisenbug because now it's gone
      away for unknown reasons.  Watch out for it in the future though.
      e7f72c84