Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Machine ¶
type Machine struct {
// Runtime statistics.
Stats Statistics
// contains filtered or unexported fields
}
The main object.
func New ¶
func New(consumers int, filename string, run_handler RunHandler, res_handler ResultHandler) *Machine
Builds a new machine object, if consumers is less or equal than 0, CPU*2 will be used as default value.
func (*Machine) UpdateStats ¶
func (m *Machine) UpdateStats()
type ResultHandler ¶
type ResultHandler func(result interface{})
This is where positive results are handled.
type Statistics ¶
type Statistics struct {
// Time the execution started
Start time.Time
// Time the execution finished
Stop time.Time
// Total duration of the execution
Total time.Duration
// Total number of inputs from the wordlist
Inputs uint64
// Executions per second
Eps float64
// Total number of executions
Execs uint64
// Total number of executions with positive results.
Results uint64
}
This structure contains some runtime statistics.
Click to show internal directories.
Click to hide internal directories.
