Skip to main content

A collection of benchmark functions.

Project description

fBench

pypi docs ci status coverage license

About

A collection of benchmark functions:

Installation

fbench is available on PyPI for Python 3.8+:

pip install fbench

Examples

The ackley function:

>>> import fbench
>>> round(fbench.ackley([1, 1]), 4)
3.6254

Visualize function with FunctionPlotter:

>>> import matplotlib.pyplot as plt
>>> plotter = fbench.viz.FunctionPlotter(func=fbench.ackley, bounds=[(-5, 5)] * 2)
>>> plotter.plot()
>>> plt.show()

Ackley function.

Contributing to fBench

Your contribution is greatly appreciated! See the following links to help you get started:

License

fbench was created by fBench Developers. It is licensed under the terms of the BSD 3-Clause license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fbench-1.0.1.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

fbench-1.0.1-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page