Changeset 30584 in project


Ignore:
Timestamp:
03/19/14 09:42:54 (7 years ago)
Author:
certainty
Message:

micro-benchmark: updated docs for new api

File:
1 edited

Legend:

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

    r30574 r30584  
    2626(use micro-benchmark)
    2727
    28 (benchmark-measure (sleep 2)) ;returns the runtime in microseconds
     28(benchmark-measure (sleep 2))
    2929
    3030;; run code 3 times and return results
     
    3939
    4040<syntax>(benchmark-measure ?code ...)</syntax>
    41 Runs the '''?code''' once and returns the elapsed runtime in microseconds.
     41Runs the '''?code''' once and returns a pair.
     42
     43* car - the runtime in microseconds
     44* cdr - the result of '''?code'''
    4245
    4346<syntax>(benchmark-run [iterations] ?code ...)</syntax>
     
    4851* avg - the average runtime of all iterations in microseconds
    4952* runtimes - the list of all runtimes in microseconds
     53* values  - the list of results
    5054
    5155If '''iterations''' is not given then '''curren-benchmark-iterations''' is used.
Note: See TracChangeset for help on using the changeset viewer.