| 62 | | (defun perf () |
|---|
| 63 | | (let ((sl (make-instance 'skip-list))) |
|---|
| 64 | | (time (prof:with-profiling () |
|---|
| 65 | | (dotimes (i 100000) |
|---|
| 66 | | (skip-list-insert sl i i)))) |
|---|
| 67 | | (prof:show-flat-profile) |
|---|
| 68 | | (format t "~%~%") |
|---|
| 69 | | (time (prof:with-profiling () |
|---|
| 70 | | (dotimes (i 100000) |
|---|
| 71 | | (skip-list-search sl i)))) |
|---|
| 72 | | (prof:show-flat-profile))) |
|---|
| | 63 | ;; (defun perf () |
|---|
| | 64 | ;; (let ((sl (make-instance 'skip-list))) |
|---|
| | 65 | ;; (time (prof:with-profiling () |
|---|
| | 66 | ;; (dotimes (i 100000) |
|---|
| | 67 | ;; (skip-list-insert sl i i)))) |
|---|
| | 68 | ;; (prof:show-flat-profile) |
|---|
| | 69 | ;; (format t "~%~%") |
|---|
| | 70 | ;; (time (prof:with-profiling () |
|---|
| | 71 | ;; (dotimes (i 100000) |
|---|
| | 72 | ;; (skip-list-search sl i)))) |
|---|
| | 73 | ;; (prof:show-flat-profile))) |
|---|
| | 74 | |
|---|