/freebsd-current/contrib/sendmail/libsm/ |
H A D | b-strl.c | 32 #define LOOPS 4000000L /* initial number of loops */ 67 long loops = LOOPS; 116 for (a = 0; a < loops; a++) 127 for (a = 0; a < loops; a++) 137 loops += loops; 138 if (loops < 0L || one > MAXTIME) 145 loops); 152 loops = LOOPS; 157 for (a = 0; a < loops; [all...] |
H A D | b-strcmp.c | 21 #define LOOPS 4000000L /* initial number of loops */ 52 long loops; local 101 loops = LOOPS; 107 for (a = 0; a < loops; a++) 118 for (a = 0; a < loops; a++) 128 loops += loops; 129 if (loops < 0L || one > MAXTIME) 137 loops);
|
/freebsd-current/share/examples/perfmon/ |
H A D | perfmon.c | 52 int loops, i, sleeptime; local 66 loops = 50; 90 loops = getnum(optarg, 1, INT_MAX - 1); 108 buf = malloc((loops + 1) * sizeof *buf); 110 err(1, "malloc(%lu)", (unsigned long)(loops +1) * sizeof *buf); 127 for (i = 0; i < loops; i++) { 152 for (i = 1; i <= loops; i++) { 156 printf("total: %f\nmean: %f\n", total, total / loops);
|
/freebsd-current/tools/test/stress2/tools/ |
H A D | bench.c | 63 int loops = 9000; local 72 for (i = 0; i < loops; i++) { 82 for (i = 0; i < loops; i++) { 122 int loops = 10000; local 132 for (i = 0; i < loops; i++) { 142 for (i = 0; i < loops; i++) { 155 int loops = 10000; local 165 for (i = 0; i < loops; i++) { 188 int loops = 10000; local 198 for (i = 0; i < loops; 227 int loops = 8000; local [all...] |
/freebsd-current/contrib/cortex-strings/scripts/ |
H A D | bench.py | 58 def run(cache, variant, function, bytes, loops, alignment, run_id, quiet=False): 60 key = ':'.join('%s' % x for x in (variant, function, bytes, loops, alignment, run_id)) 66 cmd = '%(xbuild)s%(variant)s -t %(function)s -c %(bytes)s -l %(loops)s -a %(alignment)s -r %(run_id)s' % locals() 107 # adjust the number of loops based on that. Not great 113 loops = int(f / math.sqrt(max(1, mid))) 114 took = run(cache, variant, function, mid, loops, alignment, 0, 125 # Figure out the number of loops to give a roughly consistent run 126 loops = int(f / math.sqrt(max(1, b))) 128 run(cache, variant, function, b, loops, alignment,
|
H A D | plot.py | 13 Record = collections.namedtuple('Record', 'variant test size loops src_alignment dst_alignment run_id rawtime comment time bytes rate') 47 bounces = pylab.array([(x.loops, x.rawtime) for x in r if x.test == 'bounce']) 56 bytes = r1.size * r1.loops 58 delta = pylab.polyval(fit, [r1.loops])
|
H A D | libplot.py | 6 Record = collections.namedtuple('Record', 'variant function bytes loops src_alignment dst_alignment run_id elapsed rest') 59 costs[(record.bytes, record.loops)] = record.elapsed 68 cost = costs.get((record.bytes, record.loops), None)
|
H A D | plot-top.py | 33 vals = [match.bytes*match.loops/match.elapsed/(1024*1024) for
|
H A D | plot-align.py | 32 vals = [match.bytes*match.loops/match.elapsed/(1024*1024) for
|
H A D | plot-sizes.py | 61 vals = [x.bytes*x.loops/x.elapsed/(1024*1024) for x in matches if x.bytes == xbytes]
|
/freebsd-current/contrib/bmake/unit-tests/ |
H A D | directive-for-lines.mk | 3 # Tests for the line numbers that are reported in .for loops. 7 # messages inside .for loops had been wrong since ParseGetLine skipped empty
|
H A D | directive-for-break.mk | 3 # Tests for .break in .for loops, which immediately terminates processing of 22 # other .for loops are continued normally.
|
H A D | cond-func-defined.mk | 40 # Variables from .for loops are not defined. 46 # In .for loops, expressions based on the loop variables are substituted at
|
/freebsd-current/contrib/cortex-strings/benchmarks/multi/ |
H A D | harness.c | 277 int loops = 10000000; local 298 loops = parse_int_arg(optarg, argv[0]); 366 for (int i = 0; i < loops; i++) 373 for (int i = 0; i < loops; i++) 396 double bounced = 0.448730 * loops / 50000000; 401 count, loops, src_alignment, dst_alignment, run_id, 403 elapsed, loops, ptest->name, count, 404 (double)loops*count/(elapsed - bounced)/(1024*1024));
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | jumbo.sh | 83 int loops, port, server; 89 fprintf(stderr, "FAIL Server timed out after %d loops.\n", 90 loops); 92 fprintf(stderr, "FAIL Client timed out after %d loops.\n", 93 loops); 145 loops++; 198 loops++;
|
H A D | all.sh | 46 loops=0 # Times to run the tests 69 -l) loops=$2 # Number of time to run 78 -o) loops=1 # Only run once 126 echo "$loops" | grep -Eq "^[0-9]+$" || 219 [ -f $i ] || loops=1 # break 258 [ $((loops -= 1)) -eq 0 ] && break
|
H A D | rename12.sh | 52 loops=4 56 for i in `jot $loops`; do
|
H A D | mlockall7.sh | 225 int i, loops, s, status; 231 errx(1, "Usage: %s <loops>", argv[0]); 232 loops = atoi(argv[1]); 243 for (i = 0; i < loops; i++) {
|
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_chksum.c | 145 uint32_t l, loops = 0; local 150 size = 1<<10; loops = 128; break; 152 size = 1<<12; loops = 64; break; 154 size = 1<<14; loops = 32; break; 156 size = 1<<16; loops = 16; break; 158 size = 1<<18; loops = 8; break; 160 size = 1<<20; loops = 4; break; 162 size = 1<<22; loops = 1; break; 164 size = 1<<24; loops = 1; break; 170 for (l = 0; l < loops; [all...] |
/freebsd-current/contrib/netbsd-tests/net/in_cksum/ |
H A D | in_cksum.c | 176 int loops, old_sum, off, len; local 186 loops = 16; 197 loops = atoi(optarg); 206 errx(1, "%s [-l <loops>] [-u <unalign> [-i <iterations> " 211 for (; loops; --loops) { 219 if (loops == 1)
|
/freebsd-current/sys/contrib/dev/iwlwifi/pcie/ |
H A D | trans-gen2.c | 417 u32 value, loops = 0; local 435 loops++; 439 "Polled for IML load: irq=%d, loops=%d, CSR_LTR_LAST_MSG=0x%x\n", 440 irq, loops, value);
|
/freebsd-current/sys/dev/sume/ |
H A D | if_sume.c | 321 int ch, loops; local 344 loops = 0; 346 loops <= 5) { 398 loops++; 404 "during TX; not in recovery; state = %d loops = " 405 "%d\n", ch, vect, send->state, loops); 407 loops = 0; 409 SUME_MSI_RXDONE)) && loops < 5) { 518 loops++; 524 "during RX; not in recovery; state = %d, loops [all...] |
/freebsd-current/sys/dev/hptmv/ |
H A D | mvStorageDev.h | 211 MV_U8 good, MV_U8 bad, MV_U32 loops, MV_U32 delay);
|
/freebsd-current/sys/dev/ioat/ |
H A D | ioat_test.c | 363 uint32_t loops; local 479 for (loops = 0;; loops++) { 480 if (test->duration == 0 && loops >= test->transactions)
|
/freebsd-current/contrib/bmake/mk/ |
H A D | warnings.mk | 117 # .for loops have the [dis]advantage of being evaluated when read, 120 # Replacing the above .for loops with the WARNINGS+= below solves that
|