Changeset 39367 in project


Ignore:
Timestamp:
11/24/20 02:30:48 (8 weeks ago)
Author:
Kon Lovett
Message:

fix arg names, types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/micro-benchmark

    r39361 r39367  
    1919</enscript>
    2020
     21=== Types
     22
    2123==== statistics-alist
    2224==== runtimes
     
    2527<type>runtimes : (list-of real)</type>
    2628
    27 {{runtimes}} are in ÎŒs.
     29'''Note''' {{runtimes}} are in microseconds (ÎŒs).
    2830
    2931=== current-benchmark-iterations
     
    4143=== benchmark-measure
    4244
    43 <syntax>(benchmark-measure EXPR ...) -> number</syntax>
     45<syntax>(benchmark-measure EXPR ...) -> real</syntax>
    4446
    4547Runs the {{EXPR ...}} once & returns the runtime in microseconds.
     
    6668: {{SECONDS}} ; {{fixnum}} ; seconds of run while counting, defaults to {{5}}
    6769: {{WARMUPS}} ; {{fixnum}} ; seconds of run before counting, defaults to {{2}}
    68 : {{VERBOSE?}} ; {{symbol}} ; statistics set generated
     70: {{STAT-ID}} ; {{symbol}} ; statistics set generated
    6971
    7072=== benchmark-measure-run
     
    7981
    8082<syntax>(benchmark-measure-ips (begin EXPR ...)) -> runtimes</syntax>
    81 <syntax>(benchmark-measure-ips ([THRESHOLDS [WARMUPS]]) EXPR ...) -> runtimes</syntax>
     83<syntax>(benchmark-measure-ips ([SECONDS [WARMUPS]]) EXPR ...) -> runtimes</syntax>
    8284
    8385Determines how many times one can run the given {{EXPR ...}} per second and
    8486returns a list of the runtimes.
    8587
    86 : {{THRESHOLDS}} ; {{fixnum}} ; seconds of run while counting, defaults to {{5}}
     88: {{SECONDS}} ; {{fixnum}} ; seconds of run while counting, defaults to {{5}}
    8789: {{WARMUPS}} ; {{fixnum}} ; seconds of run before counting, defaults to {{2}}
    88 : {{VERBOSE?}} ; {{boolean}} ; {{#t}} - complete statistics, {{#f}} - normal statistics
    8990
    9091=== run-benchmark-measure
    9192
    92 <procedure>(run-benchmark-measure THUNK) -> number</procedure>
     93<procedure>(run-benchmark-measure THUNK) -> real</procedure>
    9394
    9495Returns the {{(THUNK)}} runtime in microseconds.
Note: See TracChangeset for help on using the changeset viewer.