Pudu programming language
Menu
API reference

Std.Bench.fasterThan

1 declaration

fn

fasterThan: &Std.Bench.Report -> &Std.Bench.Report -> Int -> Bool

This is a callable function.

What it does

Whether a candidate is faster than a baseline by more than a stated margin.

The margin is why this takes one: two measurements of the same code differ

from one run to the next, and a comparison that called any difference a

change would report a result every time it was asked.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.BenchSearch related declarations