benchmark

benchmark given code


Parameters

benchmark action :block :bytecode

Attributes

getget benchmark time

Returns

  • :floating
  • or  :nothing

Examples

copy
benchmark [ ; some process that takes some time loop 1..10000 => prime? ] ; [benchmark] time: 0.065s

copy
benchmark.get [ loop 1..10000 => prime? ] ; => 0.3237628936767578

Related