Action:
|
Runs the performance test(s).
|
|
Filename:
|
kern/kern_scm/perf_scm.cxx
|
|
Syntax:
|
(test:performance string)
|
|
Arg Types:
|
string
|
string
|
|
Returns:
|
string
|
|
Description:
|
Runs performance test(s) specified by the
string argument. The format of
string varies based on the test(s) requested. Currently, only the ENTITY_LIST performance test is available.
|
|
|
The format for
string is: "ENTITY_LIST [all | add | clear | assign | lookup | next | index] list_size iteration".
list_size is the size of the
entity_list and
iteration specifies how many times the test is to be run. If
list_size and
iteration are not specified, the default values 1000 and 1 (respectively) are assigned.
|
|
Limitations:
|
Only the ENTITY_LIST performance test is currently available.
|
|
Example:
|
; test:performance
|
|
; Run entity_list performance test. Request list_size
|
|
; and iteration different from defaults.
|
|
(test:performance "entity_list all 100 10000")
|
|
;; ()
|
|
; Size of the list = 100
|
|
; Number of iteration = 10000
|
|
; 0.810000 seconds to add 100 items 10000 times
|
|
; 0.390000 seconds to clear 100 items 10000 times
|
|
; 1.151000 seconds to assign 100 items 10000 times
|
|
; 0.190000 seconds to lookup 100 items 10000 times
|
|
; 0.170000 seconds to next 100 items 10000 times
|
|
; 0.541000 seconds to index 100 items 10000 times
|