cl-performance-tuning-helper

API Reference

cl-performance-tuning-helper

A simple performance tuning helper tool box for Common Lisp

CL-PERFORMANCE-TUNING-HELPER

  • Function CLOAD (path)
    load after compile a file
  • Function ASMOUT (fun &optional path)
    output DISASSEMBLE result into a file
  • Macro PERFORMANCE (num-repeats debugger-p (func &rest args) &environment env)
    do performance test with specified arguments usage: (performance num-repeats debugger-p (function &rest args)) num-repeats: designates a number of repeats in positive integer. If you want to reference current repeat count from testing function, you should specify num-repeats as following format: (count-variable positive-integer). debugger-p: designate enable to call debugger for ANY conditions. function: a symbol of function or a lambda expression. e.g. (let ((max 5)) (pth:performance (i max) nil (format t "SAMPLE: ~d of ~d~%" i max)) ) => t ---- ;;; performance test for FORMAT MAX times ;;; do (FORMAT T "SAMPLE: ~d of ~d~%" I MAX) SAMPLE: 0 of 5 SAMPLE: 1 of 5 SAMPLE: 2 of 5 SAMPLE: 3 of 5 SAMPLE: 4 of 5 (and following platform dependant output of TIME function)
  • Macro TRASH-OUTPUTS (&body body)
    trash system stream outputs: *standard-output*, *error-output*, and *trace-output*.