| Short description: |
Simple benchmark module |
| Category: |
Library/Benchmark |
| Status: |
usable |
| Created: |
2002-12-19 12:39:00 GMT |
| Last update: |
- |
| Owner: |
Shannon Fang
(Projects of this owner) |
| Homepage: |
n/a |
| Download: |
n/a
|
| License: |
Ruby's |
| Dependency: |
|
| Description: |
A simple benchmark module.
Pro:
- Simple
- Does not interfere with program output
Con:
- Only real time displayed, no system/user time
Usage:
require "yabm"
bm=Yabm.new
# do task 1
bm.log("task1")
# some other things
bm.log
# do task 2
bm.log("task2",:split)
# something else
bm.report
Please find the source code at www.rubytalk.org, search for YABM. Thanks.
|