Metadata-Version: 2.1
Name: perfbench
Version: 0.1.0
Summary: UNKNOWN
Home-page: https://github.com/Hasenpfote/perfbench
Author: Hasenpfote
Author-email: Hasenpfote36@gmail.com
License: UNKNOWN
Description: `License <https://github.com/Hasenpfote/fpq/blob/master/LICENSE>`__
        `Build Status <https://travis-ci.org/Hasenpfote/perfbench>`__ `PyPI
        version <https://badge.fury.io/py/perfbench>`__
        
        perfbench
        =========
        
        About
        -----
        
        Feature
        -------
        
        Compatibility
        -------------
        
        perfbench works with Python 3.3 or higher.
        
        Dependencies
        ------------
        
        -  ipython(6.0.0 or higher.)
        -  tqdm(4.6.1 or higher.)
        -  plotly(2.7.0 or lower)
        
        Installation
        ------------
        
        ::
        
           pip install perfbench
        
        Usage
        -----
        
        case1:
        
        .. code:: python
        
           import numpy as np
           from perfbench.process import *
        
        
           setups = [
               {'func': lambda n: np.random.uniform(low=-1., high=1., size=n).astype(np.float64), 'title': 'float64'}
           ]
        
           kernels = [
               {'func': lambda x: np.around(x), 'label': 'around'},
               {'func': lambda x: np.rint(x), 'label': 'rint'}
           ]
        
           ntimes = [2 ** n for n in range(15)]
        
           bm = Benchmark(
               setups=setups,
               kernels=kernels,
               ntimes=ntimes,
               xlabel='samples',
               title='test',
               logx=True
           )
           bm.run()
           bm.show()
        
        .. figure:: https://raw.githubusercontent.com/Hasenpfote/perfbench/master/docs/plot1.png
           :alt: plot1
        
           plot1
        
        case2:
        
        .. code:: python
        
           import numpy as np
           from perfbench.process import *
        
        
           setups = [
               {'func': lambda n: np.random.uniform(low=-1., high=1., size=n).astype(np.float16), 'title': 'float16'},
               {'func': lambda n: np.random.uniform(low=-1., high=1., size=n).astype(np.float32), 'title': 'float32'},
               {'func': lambda n: np.random.uniform(low=-1., high=1., size=n).astype(np.float64), 'title': 'float64'}
           ]
        
           kernels = [
               {'func': lambda x: np.around(x), 'label': 'around'},
               {'func': lambda x: np.rint(x), 'label': 'rint'}
           ]
        
           ntimes = [2 ** n for n in range(5)]
        
           bm = Benchmark(
               setups=setups,
               kernels=kernels,
               ntimes=ntimes,
               xlabel='samples',
               title='test',
               logx=True
           )
           bm.run()
           bm.show()
        
        .. figure:: https://raw.githubusercontent.com/Hasenpfote/perfbench/master/docs/plot2.png
           :alt: plot2
        
           plot2
        
        License
        -------
        
        This software is released under the MIT License, see LICENSE.
        
Keywords: benchmark,performance,plot,plotly
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities
Requires-Python: >=3.3
Provides-Extra: doc
Provides-Extra: test
