Mercurial > mplayer.hg
view TOOLS/perlbench.pl @ 17094:cb35587c8156
fix
vf_phase.c:101: warning: suggest parentheses around + or - inside shift
vf_phase.c:102: warning: suggest parentheses around + or - inside shift
vf_phase.c:105: warning: suggest parentheses around + or - inside shift
vf_phase.c:106: warning: suggest parentheses around + or - inside shift
vf_phase.c:112: warning: suggest parentheses around + or - inside shift
vf_phase.c:113: warning: suggest parentheses around + or - inside shift
vf_phase.c:116: warning: suggest parentheses around + or - inside shift
vf_phase.c:117: warning: suggest parentheses around + or - inside shift
vf_phase.c:123: warning: suggest parentheses around + or - inside shift
vf_phase.c:124: warning: suggest parentheses around + or - inside shift
vf_phase.c:127: warning: suggest parentheses around + or - inside shift
vf_phase.c:128: warning: suggest parentheses around + or - inside shift
vf_phase.c:134: warning: suggest parentheses around + or - inside shift
vf_phase.c:135: warning: suggest parentheses around + or - inside shift
vf_phase.c:136: warning: suggest parentheses around + or - inside shift
vf_phase.c:139: warning: suggest parentheses around + or - inside shift
vf_phase.c:140: warning: suggest parentheses around + or - inside shift
vf_phase.c:141: warning: suggest parentheses around + or - inside shift
author | rathann |
---|---|
date | Mon, 05 Dec 2005 01:28:59 +0000 |
parents | 5cbbf47cae1e |
children |
line wrap: on
line source
#!/usr/bin/perl -w use strict; use constant CMD => "./fastmem2-k7"; sub dobench { my $i; my ($runs, $sleep, $command) = @_; for($i = 0; $i < $runs; $i++) { sleep $sleep; system $command; } } print "Single run of sse bench with 1sec sleep:\n"; &dobench(1,1,CMD); print "Sleeping 10seconds before starting next bench!\n"; sleep 10; print "10 runs of sse bench with 0sec sleep:\n"; &dobench(10,0,CMD); print "Sleeping 10seconds before starting next bench!\n"; sleep 10; print "10 runs of sse bench with 1sec sleep:\n"; &dobench(10,1,CMD); print "Sleeping 10seconds before starting next bench!\n"; sleep 10; print "10 runs of sse bench with 2sec sleep:\n"; &dobench(10,2,CMD); print "Sleeping 10seconds before starting next bench!\n"; sleep 10; print "10 runs of sse bench with 3sec sleep:\n"; &dobench(10,3,CMD); print "Bench finished!\n";