小编ET1*_*erd的帖子

管道传输时,C++程序的性能更佳

十年来我没有做过任何编程.我想回到它,所以我把这个毫无意义的程序作为练习.描述它的作用的最简单方法是输出我的--help codeblock:

./prng_bench --help

./prng_bench: usage: ./prng_bench $N $B [$T]

   This program will generate an N digit base(B) random number until
all N digits are the same. 

Once a repeating N digit base(B) number is found, the following statistics are displayed:
  -Decimal value of all N digits.
  -Time & number of tries taken to randomly find.

Optionally, this process is repeated T times. 
   When running multiple repititions, averages for all N digit base(B)
numbers are displayed at the end, as …
Run Code Online (Sandbox Code Playgroud)

c++ random performance time clock

3
推荐指数
1
解决办法
183
查看次数

标签 统计

c++ ×1

clock ×1

performance ×1

random ×1

time ×1