|
|
| version 1.1, 2009/05/11 09:18:23 | version 1.4, 2010/07/03 07:09:55 |
|---|---|
| Line 1 | Line 1 |
| @main[] | @main[] |
| ^memory:compact[] | |
| $r0[$status:rusage] | $r0[$status:rusage] |
| $m0[$status:memory] | $m0[$status:memory] |
| ^do[] | ^do[] |
| ^do[] | ^do[] |
| ^sleep(1) | ^sleep(1) |
| ^for[j](0;3){ | |
| $i(0) | |
| ^while(true){ | |
| $a($i) | |
| ^i.inc(1) | |
| ^if($i==9000){ | |
| ^break[] | |
| } | |
| } | |
| } | |
| $r1[$status:rusage] | $r1[$status:rusage] |
| $m1[$status:memory] | $m1[$status:memory] |
| ^memory:compact[] | ^memory:compact[] |
| ^do[] | |
| $r2[$status:rusage] | $r2[$status:rusage] |
| $m2[$status:memory] | $m2[$status:memory] |
| Status:<br /> | Status:<br /> |
| time diff: ^if($r1.tv_sec*1000+$r1.tv_usec/1000-$r0.tv_sec*1000-$r0.tv_usec/1000 >= 1000){OK}{???}<br /> | time diff: ^if($r1.tv_sec*1000+$r1.tv_usec/1000-$r0.tv_sec*1000-$r0.tv_usec/1000 >= 1000){OK}{???}<br /> |
| maxrss diff: ^if($r1.maxrss-$r0.maxrss){OK}{???}<br /> | #maxrss diff: ^if($r2.maxrss-$r0.maxrss){OK}{???}<br /> |
| ^$r1.stime: ^if($r1.stime){OK}{???}<br /> | ^$r1.stime: ^if($r1.stime){OK}{???}<br /> |
| ^$r1.utime: ^if($r1.utime){OK}{???}<br /> | ^$r1.utime: ^if($r1.utime){OK}{???}<br /> |
| ^$r1.utime >= ^$r1.stime ? ^if($r1.utime >= $r1.stime){Y (OK)}{N (???)}<br /> | ^$r1.utime >= ^$r1.stime ? ^if($r1.utime >= $r1.stime){Y (OK)}{N (???)}<br /> |
| Line 33 Memory:<br /> | Line 46 Memory:<br /> |
| <br /> | <br /> |
| ^$m1.ever_allocated_since_compact >= ^$m0.ever_allocated_since_compact ? ^if($m1.ever_allocated_since_compact >= $m0.ever_allocated_since_compact){Y (OK)}{N (???)}<br /> | ^$m1.ever_allocated_since_compact >= ^$m0.ever_allocated_since_compact ? ^if($m1.ever_allocated_since_compact >= $m0.ever_allocated_since_compact){Y (OK)}{N (???)}<br /> |
| ^$m2.ever_allocated_since_compact < ^$m0.ever_allocated_since_compact ? ^if($m2.ever_allocated_since_compact < $m0.ever_allocated_since_compact){Y (OK)}{N (???)}<br /> | ^$m2.ever_allocated_since_compact >= ^$m0.ever_allocated_since_compact ? ^if($m2.ever_allocated_since_compact >= $m0.ever_allocated_since_compact){Y (OK)}{N (???)}<br /> |
| @do[][i;var] | @do[][i;var] |
| $var[^for[i](1;5000){^i.format[%4d]}] | $var[^for[i](1;5000){^i.format[%4d]}] |