Skip to content

Commit

Permalink
DOC: Update benchmark codes to match current set.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkern committed Jun 26, 2019
1 parent 45473e3 commit 57d222f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benchmarks/bench_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def time_permutation_int(self):

class RNG(Benchmark):
param_names = ['rng']
params = ['PCG64', 'MT19937', 'Philox', 'numpy']
params = ['PCG64', 'MT19937', 'Philox', 'SFC64', 'numpy']

def setup(self, bitgen):
if bitgen == 'numpy':
Expand Down Expand Up @@ -133,7 +133,7 @@ class Bounded(Benchmark):
u32 = np.uint32
u64 = np.uint64
param_names = ['rng', 'dt_max']
params = [['PCG64', 'MT19937', 'Philox', 'numpy'],
params = [['PCG64', 'MT19937', 'Philox', 'SFC64', 'numpy'],
[[u8, 95],
[u8, 64], # Worst case for legacy
[u8, 127], # Best case for legacy
Expand Down
4 changes: 2 additions & 2 deletions doc/source/reference/random/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import pandas as pd

import numpy as np
from numpy.random import MT19937, ThreeFry, PCG64, Philox
from numpy.random import MT19937, PCG64, Philox, SFC64

PRNGS = [MT19937, PCG64, Philox, ThreeFry]
PRNGS = [MT19937, PCG64, Philox, SFC64]

funcs = OrderedDict()
integers = 'integers(0, 2**{bits},size=1000000, dtype="uint{bits}")'
Expand Down

0 comments on commit 57d222f

Please sign in to comment.