[perldocjp-cvs 1301] CVS update: docs/modules/Benchmark-1.10

Back to archive index

argra****@users***** argra****@users*****
2011年 6月 8日 (水) 01:56:49 JST


Index: docs/modules/Benchmark-1.10/Benchmark.pod
diff -u docs/modules/Benchmark-1.10/Benchmark.pod:1.4 docs/modules/Benchmark-1.10/Benchmark.pod:1.5
--- docs/modules/Benchmark-1.10/Benchmark.pod:1.4	Thu May 26 01:05:12 2011
+++ docs/modules/Benchmark-1.10/Benchmark.pod	Wed Jun  8 01:56:49 2011
@@ -491,10 +491,9 @@
 
 =end original
 
-Returns a reference to an ARRAY of rows, each row is an ARRAY of cells from the
-above chart, including labels.
+それぞれの行が上述の(ラベル込みの)セルの配列からなる、行の配列への
+リファレンスを返します。
 こうすると:
-(TBT)
 
     my $rows = cmpthese( -1, { a => '++$i', b => '$i *= 2' }, "none" );
 
@@ -533,10 +532,10 @@
 
 =end original
 
-Incidently, note the variance in the result values between the two examples;
-this is typical of benchmarking.  If this were a real benchmark, you would
-probably want to run a lot more iterations.
-(TBT)
+偶然ながら、二つの例における結果値の違いに注意してください; これは
+ベンチマークでは典型的です。
+もしこれが実際のベンチマークなら、おそらくもっとたくさんの回数繰り返して
+実行したいでしょう。
 
 =item countit(TIME, CODE)
 
@@ -548,10 +547,9 @@
 
 =end original
 
-Arguments: TIME is the minimum length of time to run CODE for, and CODE is
-the code to run.  CODE may be either a code reference or a string to
-be eval'd; either way it will be run in the caller's package.
-(TBT)
+引数: TIME は CODE を実行するための最短時間で、CODE は実行するコードです。
+CODE はコードリファレンスか、eval される文字列です; どちらの場合も
+呼び出し元のパッケージで実行されます。
 
 =begin original
 
@@ -563,12 +561,12 @@
 
 =end original
 
-TIME is I<not> negative.  countit() will run the loop many times to
-calculate the speed of CODE before running it for TIME.  The actual
-time run for will usually be greater than TIME due to system clock
-resolution, so it's best to look at the number of iterations divided
-by the times that you are concerned with, not just the iterations.
-(TBT)
+TIME は負数では I<ありません> 。
+countit() は、TIME のために実行する前に、CORE の速度を測るために
+何度もループを実行します。
+実際の実行時間は普通はシステムクロックの粒度のために TIME よりも
+大きくなるので、単に繰り返し回数ではなく、繰り返し回数を関心のある
+回数で割ったものを見るのが最良です。
 
 =begin original
 
@@ -632,13 +630,12 @@
 
 =end original
 
-If the Time::HiRes module has been installed, you can specify the
-special tag C<:hireswallclock> for Benchmark (if Time::HiRes is not
-available, the tag will be silently ignored).  This tag will cause the
-wallclock time to be measured in microseconds, instead of integer
-seconds.  Note though that the speed computations are still conducted
-in CPU time, not wallclock time.
-(TBT)
+Time::HiRes モジュールがインストールされているなら、Benchmark のための
+特別な C<:hireswallclock> タグを指定できます (もし Time::HiRes が
+利用できないなら、このタグは暗黙に無視されます)。
+このタグにより、壁時計時間は整数秒ではなく、マイクロ秒で計測されます。
+しかし、速度計算は以前として壁時計時間ではなく CPU 時間によって
+行われることに注意してください。
 
 =head1 NOTES
 
@@ -806,10 +803,8 @@
 
 =end original
 
-Comparing eval'd strings with code references will give you
-inaccurate results: a code reference will show a slightly slower
-execution time than the equivalent eval'd string.
-(TBT)
+eval された文字列とコードリファレンスを比べると、不正確な結果となります;
+コードリファレンスは等価な eval された文字列よりも少し実行が遅いです。
 
 =begin original
 
@@ -818,8 +813,8 @@
 
 =end original
 
-実際の時間の計時は、time(2) を使って行なわれますので、精度は
-秒程度しかありません。
+実際の時間の計測は、time(2) を使って行なわれるので、精度は
+1 秒程度しかありません。
 
 =begin original
 



perldocjp-cvs メーリングリストの案内
Back to archive index