Learn R Programming

rgp (version 0.4-1)

rgpBenchmark: Utility functions for testing and benchmarking the RGP system

Description

rgpBenchmark measures the number of fitness evaluations per second performed by geneticProgramming. A number of samples experiments are performed.

Usage

rgpBenchmark(fitnessFunction = function(ind) 0, samples = 1, time = 10, ...)
evaluationsPerSecondBenchmark(f, samples = 1, time = 10, ...)

Arguments

f
The function under test.
fitnessFunction
The fitness function to pass to the call to geneticProgramming.
samples
The number of indpendent measurements to perform, defaults to 1.
time
The time in seconds a sample lasts, defaults to 10 seconds.
...
Options as passed to the function under test.

Value

The number of fitness evaluations per second performed by RGP.

Details

evaluationsPerSecondBenchmark measures the number of times a function can be called per second in a tight loop.