/external/python/cpython2/Doc/includes/ |
D | mp_benchmarks.py | 20 def queuespeed_func(q, c, iterations): argument 26 for i in xrange(iterations): 33 iterations = 1 36 iterations *= 2 38 p = Process(target=queuespeed_func, args=(q, c, iterations)) 54 print iterations, 'objects passed through the queue in', elapsed, 'seconds' 55 print 'average number/sec:', iterations/elapsed 60 def pipe_func(c, cond, iterations): argument 66 for i in xrange(iterations): 75 iterations = 1 [all …]
|
/external/lz4/examples/ |
D | compress_functions.c | 112 const int iterations, in bench() argument 138 for (int i=1; i<=iterations; i++) in bench() 151 for (int i=1; i<=iterations; i++) in bench() 164 for (int i=1; i<=iterations; i++) in bench() 197 for (int i=1; i<=iterations; i++) in bench() 210 for (int i=1; i<=iterations; i++) in bench() 238 int iterations = 1000000; in main() local 240 iterations = atoi(argv[1]); in main() 241 if (iterations < 1) in main() 321 …_default = bench(known_good_dst, ID__LZ4_COMPRESS_DEFAULT, iterations, src, … in main() [all …]
|
/external/ltp/utils/ffsb-6.0-rc2/ |
D | fileops.c | 66 int iterations, a; in readfile_helper() local 69 iterations = size / blocksize; in readfile_helper() 72 for (a = 0; a < iterations; a++) in readfile_helper() 76 return iterations; in readfile_helper() 105 uint64_t iterations = 0; in ffsb_readfile() local 122 iterations = read_size / read_blocksize; in ffsb_readfile() 130 minfilesize = last + iterations * in ffsb_readfile() 133 minfilesize = read_blocksize + iterations - 1 * in ffsb_readfile() 147 for (i = 0; i < iterations; i++) { in ffsb_readfile() 154 iterations++; in ffsb_readfile() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | Timer.java | 24 private int iterations; field in Timer 50 return iterations; in getIterations() 76 public String toString(long iterations) { in toString() argument 77 return nf.format(getDuration()/iterations) + "\tns"; in toString() 80 public String toString(long iterations, long other) { in toString() argument 81 …return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D… in toString() 108 iterations = 1; in timeIterations() 113 loop.time(iterations); in timeIterations() 116 duration /= iterations; in timeIterations() 119 duration /= iterations; in timeIterations() [all …]
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | Timer.java | 21 private int iterations; field in Timer 47 return iterations; in getIterations() 73 public String toString(long iterations) { in toString() argument 74 return nf.format(getDuration()/iterations) + "\tns"; in toString() 77 public String toString(long iterations, long other) { in toString() argument 78 …return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D… in toString() 105 iterations = 1; in timeIterations() 110 loop.time(iterations); in timeIterations() 113 duration /= iterations; in timeIterations() 116 duration /= iterations; in timeIterations() [all …]
|
/external/eigen/bench/tensors/ |
D | benchmark_main.cc | 141 void Benchmark::RunRepeatedlyWithArg(int iterations, int arg) { in RunRepeatedlyWithArg() argument 146 fn_(iterations); in RunRepeatedlyWithArg() 148 fn_range_(iterations, arg); in RunRepeatedlyWithArg() 156 int iterations = 1; in RunWithArg() local 157 RunRepeatedlyWithArg(iterations, arg); in RunWithArg() 158 while (g_benchmark_total_time_ns < 1e9 && iterations < 1e9) { in RunWithArg() 159 int last = iterations; in RunWithArg() 160 if (g_benchmark_total_time_ns/iterations == 0) { in RunWithArg() 161 iterations = 1e9; in RunWithArg() 163 iterations = 1e9 / (g_benchmark_total_time_ns/iterations); in RunWithArg() [all …]
|
/external/vixl/benchmarks/aarch32/ |
D | bench-branch-link-masm.cc | 45 void benchmark(int iterations, InstructionSet isa) { in benchmark() argument 56 for (int i = 0; i < iterations; i++) { in benchmark() 60 for (int i = 0; i < iterations; i++) { in benchmark() 64 for (int i = 0; i < iterations; i++) { in benchmark() 68 for (int i = 0; i < iterations; i++) { in benchmark() 80 iterations, in benchmark() 86 int iterations = 0; in main() local 90 iterations = kDefaultIterationsCount; in main() 93 iterations = atoi(argv[1]); in main() 101 benchmark(iterations, A32); in main() [all …]
|
D | bench-literal.cc | 45 void benchmark(int iterations, int literals, InstructionSet isa) { in benchmark() argument 57 for (int i = 0; i < iterations; i++) { in benchmark() 70 iterations, in benchmark() 76 int iterations = 0; in main() local 81 iterations = kDefaultIterationCount; in main() 85 iterations = atoi(argv[1]); in main() 89 iterations = atoi(argv[1]); in main() 98 benchmark(iterations, literals, A32); in main() 101 benchmark(iterations, literals, T32); in main()
|
D | bench-branch-masm.cc | 44 void benchmark(int iterations, InstructionSet isa) { in benchmark() argument 54 for (int i = 0; i < iterations; i++) { in benchmark() 70 iterations, in benchmark() 76 int iterations = 0; in main() local 80 iterations = kDefaultIterationCount; in main() 83 iterations = atoi(argv[1]); in main() 91 benchmark(iterations, A32); in main() 94 benchmark(iterations, T32); in main()
|
/external/grpc-grpc/test/core/gpr/ |
D | spinlock_test.cc | 40 int64_t iterations; /* number of iterations per thread */ member 48 static struct test* test_new(int threads, int64_t iterations, int incr_step) { in test_new() argument 53 m->iterations = iterations; in test_new() 92 int64_t iterations = 1024; in test() local 102 if (iterations < INT64_MAX / 2) iterations <<= 1; in test() 103 fprintf(stderr, " %ld", static_cast<long>(iterations)); in test() 105 m = test_new(10, iterations, incr_step); in test() 108 if (m->counter != m->thread_count * m->iterations * m->incr_step) { in test() 111 static_cast<long>(m->iterations)); in test() 128 for (i = 0; i != m->iterations; i++) { in inc() [all …]
|
D | sync_test.cc | 141 int64_t iterations; /* number of iterations per thread */ member 163 static struct test* test_new(int nthreads, int64_t iterations, int incr_step) { in test_new() argument 168 m->iterations = iterations; in test_new() 244 int64_t iterations = 256; in test() local 254 fprintf(stderr, " %ld", static_cast<long>(iterations)); in test() 256 m = test_new(10, iterations, incr_step); in test() 268 if (m->counter != m->nthreads * m->iterations * m->incr_step) { in test() 271 static_cast<long>(m->iterations)); in test() 276 iterations <<= 1; in test() 289 for (i = 0; i != m->iterations; i++) { in inc() [all …]
|
/external/linux-kselftest/tools/testing/selftests/sync/ |
D | sync_stress_consumer.c | 55 int iterations; member 69 int iterations = test_data_mpsc.iterations; in mpsc_producer_thread() local 71 for (i = 0; i < iterations; i++) { in mpsc_producer_thread() 81 if ((iterations + id) % 8 != 0) { in mpsc_producer_thread() 111 int iterations = test_data_mpsc.iterations; in mpcs_consumer_thread() local 114 for (it = 1; it <= iterations; it++) { in mpcs_consumer_thread() 132 if (iterations % 8 != 0) { in mpcs_consumer_thread() 155 int iterations = 1 << 12; in test_consumer_stress_multi_producer_single_consumer() local 168 test_data_mpsc.iterations = iterations; in test_consumer_stress_multi_producer_single_consumer()
|
/external/eigen/bench/btl/generic_bench/timers/ |
D | STL_timer.hh | 37 iterations.clear(); in start() 38 iterations.reserve(reps); in start() 53 iterations.push_back(count); in check() 57 return (iterations.size() < reps); in check() 62 sort(iterations.begin(), iterations.end()); in get_time() 63 return 1.0/iterations[reps/2]; in get_time() 68 vector<long> iterations; member in STL_Timer
|
/external/vixl/benchmarks/aarch64/ |
D | bench-branch-link-masm.cc | 39 int iterations = 0; in main() local 43 iterations = kDefaultIterationsCount; in main() 46 iterations = atoi(argv[1]); in main() 53 size_t base_buf_size = iterations * 4 * kInstructionSize; in main() 61 for (int i = 0; i < iterations; i++) { in main() 65 for (int i = 0; i < iterations; i++) { in main() 69 for (int i = 0; i < iterations; i++) { in main() 73 for (int i = 0; i < iterations; i++) { in main() 84 printf("A64: time for %d iterations: %gs\n", iterations, delta); in main()
|
/external/autotest/client/deps/glbench/src/ |
D | testbase.cc | 27 uint64_t TimeTest(TestBase* test, uint64_t iterations) { in TimeTest() argument 31 if (!test->TestFunc(iterations)) in TimeTest() 75 uint64_t iterations = 1; in Bench() local 80 time = TimeTest(test, iterations); in Bench() 81 dbg_printf("iterations: %llu: time: %llu time/iter: %llu\n", iterations, in Bench() 82 time, time / iterations); in Bench() 89 (iterations + iterations_prev)); in Bench() 92 iterations_prev = iterations; in Bench() 93 iterations *= 2; in Bench() 94 } while (iterations < (1ULL << 40)); in Bench() [all …]
|
/external/deqp/data/gles3/shaders/ |
D | loops.test | 58 int iterations = 0; 60 ++iterations; 61 if (iterations >= 10) { 94 for (int iterations = 0; true; in0 && foo()) { 95 ++iterations; 96 if (iterations > 10) { 129 int iterations = 0; 131 ++iterations; 132 if (iterations > 10) { 165 int iterations = 0; [all …]
|
/external/ltp/testcases/realtime/func/gtod_latency/ |
D | gtod_latency.c | 89 static unsigned int iterations = ITERATIONS; variable 208 iterations = strtoull(argv[++i], NULL, 0); in stats_cmdline() 245 if (iterations < MIN_ITERATION) { in main() 246 iterations = MIN_ITERATION; in main() 248 iterations); in main() 251 stats_container_init(&dat, iterations); in main() 253 stats_quantiles_init(&quantiles, (int)log10(iterations)); in main() 258 start_data = calloc(iterations, sizeof(struct timespec)); in main() 261 iterations); in main() 264 stop_data = calloc(iterations, sizeof(struct timespec)); in main() [all …]
|
/external/mesa3d/src/compiler/glsl/ |
D | loop_unroll.cpp | 43 void simple_unroll(ir_loop *ir, int iterations); 44 void complex_unroll(ir_loop *ir, int iterations, 129 if (int(array->type->length) == ls->limiting_terminator->iterations) in visit_enter() 178 loop_unroll_visitor::simple_unroll(ir_loop *ir, int iterations) in simple_unroll() argument 225 iterations++; in simple_unroll() 227 for (int i = 0; i < iterations; i++) { in simple_unroll() 276 loop_unroll_visitor::complex_unroll(ir_loop *ir, int iterations, in complex_unroll() argument 291 iterations++; in complex_unroll() 293 for (int i = 0; i < iterations; i++) { in complex_unroll() 391 int iterations = ls->limiting_terminator->iterations; in visit_leave() local [all …]
|
/external/ltp/testcases/realtime/func/sched_latency/ |
D | sched_latency.c | 69 static int iterations = 0; variable 102 iterations = atoi(v); in parse_args() 140 for (i = 0; i < iterations; i++) { in periodic_thread() 205 if (i != iterations) { in periodic_thread() 259 if (iterations == 0) in main() 260 iterations = DEFAULT_ITERATIONS; in main() 261 if (iterations < MIN_ITERATIONS) { in main() 264 iterations, MIN_ITERATIONS); in main() 265 iterations = MIN_ITERATIONS; in main() 268 printf("Running %d iterations with a period of %llu ms\n", iterations, in main() [all …]
|
/external/ltp/testcases/realtime/func/matrix_mult/ |
D | matrix_mult.c | 66 static int iterations = ITERATIONS; variable 88 iterations = atoi(v); in parse_args() 199 if (stats_container_init(&sdat, iterations) || in main_thread() 201 stats_container_init(&cdat, iterations) || in main_thread() 223 curdat->index = iterations - 1; in main_thread() 226 for (i = 0; i < iterations; i++) in main_thread() 231 savg = delta / iterations; /* don't use the stats record, use the total time recorded */ in main_thread() 255 curdat->index = iterations - 1; in main_thread() 276 cavg = delta / iterations; /* don't use the stats record, use the total time recorded */ in main_thread() 324 if (iterations <= 0) { in main() [all …]
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/util/ |
D | TestUtilities.java | 30 int iterations = 1000; in TestCollectionUtilitySpeed() local 41 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 44 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 45 timeAndCompare(ts2, ts1, iterations*100, false, 1.05); in TestCollectionUtilitySpeed() 48 …private void timeAndCompare(TreeSet ts1, TreeSet ts2, int iterations, boolean expected, double fac… in timeAndCompare() argument 49 …double utilityTimeSorted = timeUtilityContainsAll(iterations, ts1, ts2, expected)/(double)iteratio… in timeAndCompare() 50 …ouble standardTimeSorted = timeStandardContainsAll(iterations, ts1, ts2, expected)/(double)iterati… in timeAndCompare() 59 private long timeStandardContainsAll(int iterations, Set hs1, Set hs2, boolean expected) { in timeStandardContainsAll() argument 66 for (int i = 0; i < iterations; ++i) { in timeStandardContainsAll() 78 private long timeUtilityContainsAll(int iterations, Set hs1, Set hs2, boolean expected) { in timeUtilityContainsAll() argument [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | TestUtilities.java | 33 int iterations = 1000; in TestCollectionUtilitySpeed() local 44 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 47 timeAndCompare(ts1, ts2, iterations, true, .75); in TestCollectionUtilitySpeed() 48 timeAndCompare(ts2, ts1, iterations*100, false, 1.05); in TestCollectionUtilitySpeed() 51 …private void timeAndCompare(TreeSet ts1, TreeSet ts2, int iterations, boolean expected, double fac… in timeAndCompare() argument 52 …double utilityTimeSorted = timeUtilityContainsAll(iterations, ts1, ts2, expected)/(double)iteratio… in timeAndCompare() 53 …ouble standardTimeSorted = timeStandardContainsAll(iterations, ts1, ts2, expected)/(double)iterati… in timeAndCompare() 62 private long timeStandardContainsAll(int iterations, Set hs1, Set hs2, boolean expected) { in timeStandardContainsAll() argument 69 for (int i = 0; i < iterations; ++i) { in timeStandardContainsAll() 81 private long timeUtilityContainsAll(int iterations, Set hs1, Set hs2, boolean expected) { in timeUtilityContainsAll() argument [all …]
|
/external/protobuf/benchmarks/ |
D | ProtoBench.java | 163 int iterations = 1; in benchmark() local 164 long elapsed = timeAction(action, iterations); in benchmark() 166 iterations *= 2; in benchmark() 167 elapsed = timeAction(action, iterations); in benchmark() 172 iterations = (int) ((TARGET_TIME_MS / (double) elapsed) * iterations); in benchmark() 173 elapsed = timeAction(action, iterations); in benchmark() 174 System.out.println(name + ": " + iterations + " iterations in " in benchmark() 176 + (iterations * dataSize) / (elapsed * 1024 * 1024 / 1000f) in benchmark() 180 private static long timeAction(Action action, int iterations) throws IOException { in timeAction() argument 183 for (int i = 0; i < iterations; i++) { in timeAction()
|
/external/ltp/testcases/realtime/func/periodic_cpu_load/ |
D | periodic_cpu_load.c | 71 static int iterations = ITERATIONS; variable 88 iterations = atoi(v); in parse_args() 102 int iterations; member 133 while (i < parg->iterations) { in periodic_thread() 173 if (iterations < 100) { in main() 182 printf("Running %d iterations per thread\n", iterations); in main() 198 stats_container_init(&dat[i], iterations); in main() 199 stats_quantiles_init(&quantiles[i], (int)log10(iterations)); in main() 203 { PERIOD_A, iterations, calc, (void *)CALC_LOOPS_A }; in main() 205 { PERIOD_B, iterations, calc, (void *)CALC_LOOPS_B }; in main() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | PBEParameter.java | 17 ASN1Integer iterations; field in PBEParameter 22 int iterations) in PBEParameter() argument 29 this.iterations = new ASN1Integer(iterations); in PBEParameter() 36 iterations = (ASN1Integer)seq.getObjectAt(1); in PBEParameter() 56 return iterations.getValue(); in getIterationCount() 69 v.add(iterations); in toASN1Primitive()
|