Details - Loops

Loops (Average of lowest 95%)Loops (Average and standard deviation)

Measurements Suite Loops

Loops - for loop (11 datasets)

An empty for loop.

Loops for loop (all results)
Dataset Length Min Max Average Median Standard Deviation Factor (Average) Factor (Median)
0 974 0.0002 0.0002 0.0002 0.0002 0.0000 1.0000 1.0000
1000 952 0.0037 0.0054 0.0043 0.0038 0.0006 1.0000 1.0000
2000 965 0.0074 0.0076 0.0075 0.0075 0.0000 1.0000 1.0000
3000 952 0.0102 0.0139 0.0108 0.0111 0.0005 1.0000 1.0000
4000 951 0.0136 0.0171 0.0144 0.0148 0.0007 1.0000 1.0000
5000 953 0.0170 0.0192 0.0183 0.0185 0.0006 1.0000 1.0000
6000 952 0.0204 0.0244 0.0217 0.0222 0.0010 1.0000 1.0000
7000 954 0.0237 0.0278 0.0253 0.0259 0.0011 1.0000 1.0000
8000 952 0.0271 0.0315 0.0290 0.0296 0.0013 1.0000 1.0000
9000 951 0.0305 0.0351 0.0325 0.0333 0.0013 1.0000 1.0000
10000 953 0.0338 0.0386 0.0356 0.0353 0.0015 1.0000 1.0000

Loops - for loop 0

Loops - for loop 0Loops - for loop 0

Input:

0

Output:

Loops - for loop 1000

Loops - for loop 1000Loops - for loop 1000

Input:

1000

Output:

Loops - for loop 2000

Loops - for loop 2000Loops - for loop 2000

Input:

2000

Output:

Loops - for loop 3000

Loops - for loop 3000Loops - for loop 3000

Input:

3000

Output:

Loops - for loop 4000

Loops - for loop 4000Loops - for loop 4000

Input:

4000

Output:

Loops - for loop 5000

Loops - for loop 5000Loops - for loop 5000

Input:

5000

Output:

Loops - for loop 6000

Loops - for loop 6000Loops - for loop 6000

Input:

6000

Output:

Loops - for loop 7000

Loops - for loop 7000Loops - for loop 7000

Input:

7000

Output:

Loops - for loop 8000

Loops - for loop 8000Loops - for loop 8000

Input:

8000

Output:

Loops - for loop 9000

Loops - for loop 9000Loops - for loop 9000

Input:

9000

Output:

Loops - for loop 10000

Loops - for loop 10000Loops - for loop 10000

Input:

10000

Output:

The overview over the suite is in chapter Suite Loops.

Loops - for loop result (11 datasets)

A for loop that accumulates a result in a variable.

Loops for loop result (all results)
Dataset Length Min Max Average Median Standard Deviation Factor (Average) Factor (Median)
0 993 0.0002 0.0002 0.0002 0.0002 0.0000 1.0145 1.2494
1000 959 0.0065 0.0075 0.0072 0.0072 0.0002 1.6794 1.8979
2000 951 0.0129 0.0172 0.0136 0.0131 0.0009 1.8228 1.7526
3000 951 0.0194 0.0295 0.0213 0.0212 0.0018 1.9683 1.9100
4000 953 0.0258 0.0305 0.0278 0.0283 0.0013 1.9286 1.9115
5000 951 0.0321 0.0369 0.0344 0.0351 0.0014 1.8845 1.8981
6000 952 0.0384 0.0448 0.0405 0.0402 0.0016 1.8688 1.8076
7000 951 0.0448 0.0503 0.0478 0.0489 0.0017 1.8863 1.8886
8000 951 0.0512 0.0581 0.0546 0.0559 0.0020 1.8864 1.8893
9000 951 0.0579 0.0673 0.0621 0.0631 0.0021 1.9134 1.8970
10000 951 0.0641 0.0729 0.0687 0.0699 0.0023 1.9274 1.9771

Loops - for loop result 0

Loops - for loop result 0Loops - for loop result 0

Input:

0

Output:

0

Loops - for loop result 1000

Loops - for loop result 1000Loops - for loop result 1000

Input:

1000

Output:

500500

Loops - for loop result 2000

Loops - for loop result 2000Loops - for loop result 2000

Input:

2000

Output:

2001000

Loops - for loop result 3000

Loops - for loop result 3000Loops - for loop result 3000

Input:

3000

Output:

4501500

Loops - for loop result 4000

Loops - for loop result 4000Loops - for loop result 4000

Input:

4000

Output:

8002000

Loops - for loop result 5000

Loops - for loop result 5000Loops - for loop result 5000

Input:

5000

Output:

12502500

Loops - for loop result 6000

Loops - for loop result 6000Loops - for loop result 6000

Input:

6000

Output:

18003000

Loops - for loop result 7000

Loops - for loop result 7000Loops - for loop result 7000

Input:

7000

Output:

24503500

Loops - for loop result 8000

Loops - for loop result 8000Loops - for loop result 8000

Input:

8000

Output:

32004000

Loops - for loop result 9000

Loops - for loop result 9000Loops - for loop result 9000

Input:

9000

Output:

40504500

Loops - for loop result 10000

Loops - for loop result 10000Loops - for loop result 10000

Input:

10000

Output:

50005000

The overview over the suite is in chapter Suite Loops.

Loops - while loop (11 datasets)

A while loop that counts in a variable without returning a result.

Loops while loop (all results)
Dataset Length Min Max Average Median Standard Deviation Factor (Average) Factor (Median)
0 1000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0745 0.0000
1000 980 0.0006 0.0007 0.0006 0.0006 0.0000 0.1460 0.1633
2000 982 0.0013 0.0013 0.0013 0.0013 0.0000 0.1776 0.1753
3000 952 0.0018 0.0020 0.0018 0.0018 0.0000 0.1693 0.1626
4000 954 0.0024 0.0027 0.0025 0.0024 0.0001 0.1756 0.1641
5000 968 0.0033 0.0033 0.0033 0.0033 0.0000 0.1801 0.1767
6000 954 0.0036 0.0040 0.0038 0.0037 0.0002 0.1730 0.1646
7000 954 0.0042 0.0047 0.0043 0.0042 0.0002 0.1708 0.1634
8000 951 0.0048 0.0054 0.0051 0.0052 0.0002 0.1765 0.1771
9000 954 0.0054 0.0060 0.0059 0.0059 0.0001 0.1814 0.1771
10000 951 0.0060 0.0068 0.0063 0.0060 0.0003 0.1760 0.1710

Loops - while loop 0

Loops - while loop 0Loops - while loop 0

Input:

0

Output:

Loops - while loop 1000

Loops - while loop 1000Loops - while loop 1000

Input:

1000

Output:

Loops - while loop 2000

Loops - while loop 2000Loops - while loop 2000

Input:

2000

Output:

Loops - while loop 3000

Loops - while loop 3000Loops - while loop 3000

Input:

3000

Output:

Loops - while loop 4000

Loops - while loop 4000Loops - while loop 4000

Input:

4000

Output:

Loops - while loop 5000

Loops - while loop 5000Loops - while loop 5000

Input:

5000

Output:

Loops - while loop 6000

Loops - while loop 6000Loops - while loop 6000

Input:

6000

Output:

Loops - while loop 7000

Loops - while loop 7000Loops - while loop 7000

Input:

7000

Output:

Loops - while loop 8000

Loops - while loop 8000Loops - while loop 8000

Input:

8000

Output:

Loops - while loop 9000

Loops - while loop 9000Loops - while loop 9000

Input:

9000

Output:

Loops - while loop 10000

Loops - while loop 10000Loops - while loop 10000

Input:

10000

Output:

The overview over the suite is in chapter Suite Loops.

Loops - while loop result (11 datasets)

A while loop that accumulates a result in a variable.

Loops while loop result (all results)
Dataset Length Min Max Average Median Standard Deviation Factor (Average) Factor (Median)
0 1000 0.0000 0.0000 0.0000 0.0000 0.0000 0.1130 0.2494
1000 992 0.0007 0.0007 0.0007 0.0007 0.0000 0.1657 0.1837
2000 958 0.0013 0.0014 0.0013 0.0013 0.0001 0.1752 0.1701
3000 952 0.0019 0.0021 0.0019 0.0019 0.0000 0.1771 0.1696
4000 984 0.0027 0.0028 0.0027 0.0027 0.0000 0.1910 0.1849
5000 964 0.0031 0.0035 0.0033 0.0034 0.0001 0.1816 0.1850
6000 957 0.0038 0.0042 0.0040 0.0041 0.0002 0.1843 0.1854
7000 951 0.0044 0.0049 0.0047 0.0048 0.0002 0.1861 0.1843
8000 951 0.0050 0.0056 0.0053 0.0055 0.0002 0.1839 0.1849
9000 951 0.0057 0.0063 0.0059 0.0057 0.0002 0.1816 0.1713
10000 958 0.0063 0.0069 0.0068 0.0068 0.0001 0.1907 0.1928

Loops - while loop result 0

Loops - while loop result 0Loops - while loop result 0

Input:

0

Output:

0

Loops - while loop result 1000

Loops - while loop result 1000Loops - while loop result 1000

Input:

1000

Output:

499500

Loops - while loop result 2000

Loops - while loop result 2000Loops - while loop result 2000

Input:

2000

Output:

1999000

Loops - while loop result 3000

Loops - while loop result 3000Loops - while loop result 3000

Input:

3000

Output:

4498500

Loops - while loop result 4000

Loops - while loop result 4000Loops - while loop result 4000

Input:

4000

Output:

7998000

Loops - while loop result 5000

Loops - while loop result 5000Loops - while loop result 5000

Input:

5000

Output:

12497500

Loops - while loop result 6000

Loops - while loop result 6000Loops - while loop result 6000

Input:

6000

Output:

17997000

Loops - while loop result 7000

Loops - while loop result 7000Loops - while loop result 7000

Input:

7000

Output:

24496500

Loops - while loop result 8000

Loops - while loop result 8000Loops - while loop result 8000

Input:

8000

Output:

31996000

Loops - while loop result 9000

Loops - while loop result 9000Loops - while loop result 9000

Input:

9000

Output:

40495500

Loops - while loop result 10000

Loops - while loop result 10000Loops - while loop result 10000

Input:

10000

Output:

49995000

The overview over the suite is in chapter Suite Loops.

Loops - do while loop (11 datasets)

A do-while loop that counts in a variable without returning a result.

Loops do while loop (all results)
Dataset Length Min Max Average Median Standard Deviation Factor (Average) Factor (Median)
0 998 0.0000 0.0000 0.0000 0.0000 0.0000 0.0804 0.0000
1000 974 0.0006 0.0007 0.0006 0.0006 0.0000 0.1460 0.1633
2000 951 0.0012 0.0014 0.0013 0.0012 0.0001 0.1685 0.1650
3000 954 0.0018 0.0020 0.0018 0.0018 0.0001 0.1701 0.1626
4000 954 0.0024 0.0027 0.0024 0.0024 0.0001 0.1696 0.1641
5000 960 0.0030 0.0034 0.0031 0.0030 0.0001 0.1673 0.1642
6000 954 0.0036 0.0041 0.0037 0.0036 0.0002 0.1723 0.1629
7000 957 0.0042 0.0047 0.0043 0.0042 0.0001 0.1687 0.1634
8000 958 0.0048 0.0055 0.0050 0.0049 0.0002 0.1737 0.1641
9000 952 0.0054 0.0061 0.0056 0.0054 0.0002 0.1732 0.1632
10000 951 0.0060 0.0076 0.0062 0.0060 0.0003 0.1739 0.1710

Loops - do while loop 0

Loops - do while loop 0Loops - do while loop 0

Input:

0

Output:

Loops - do while loop 1000

Loops - do while loop 1000Loops - do while loop 1000

Input:

1000

Output:

Loops - do while loop 2000

Loops - do while loop 2000Loops - do while loop 2000

Input:

2000

Output:

Loops - do while loop 3000

Loops - do while loop 3000Loops - do while loop 3000

Input:

3000

Output:

Loops - do while loop 4000

Loops - do while loop 4000Loops - do while loop 4000

Input:

4000

Output:

Loops - do while loop 5000

Loops - do while loop 5000Loops - do while loop 5000

Input:

5000

Output:

Loops - do while loop 6000

Loops - do while loop 6000Loops - do while loop 6000

Input:

6000

Output:

Loops - do while loop 7000

Loops - do while loop 7000Loops - do while loop 7000

Input:

7000

Output:

Loops - do while loop 8000

Loops - do while loop 8000Loops - do while loop 8000

Input:

8000

Output:

Loops - do while loop 9000

Loops - do while loop 9000Loops - do while loop 9000

Input:

9000

Output:

Loops - do while loop 10000

Loops - do while loop 10000Loops - do while loop 10000

Input:

10000

Output:

The overview over the suite is in chapter Suite Loops.

Loops - do while loop result (11 datasets)

A do-while loop that accumulates a result in a variable.

Loops do while loop result (all results)
Dataset Length Min Max Average Median Standard Deviation Factor (Average) Factor (Median)
0 998 0.0000 0.0000 0.0000 0.0000 0.0000 0.0928 0.0000
1000 955 0.0006 0.0007 0.0006 0.0007 0.0000 0.1524 0.1735
2000 951 0.0013 0.0014 0.0013 0.0013 0.0000 0.1709 0.1701
3000 962 0.0019 0.0021 0.0020 0.0021 0.0001 0.1874 0.1868
4000 951 0.0025 0.0028 0.0025 0.0025 0.0000 0.1763 0.1719
5000 952 0.0031 0.0035 0.0033 0.0034 0.0001 0.1809 0.1850
6000 951 0.0038 0.0044 0.0039 0.0038 0.0001 0.1776 0.1698
7000 951 0.0044 0.0051 0.0046 0.0048 0.0002 0.1820 0.1842
8000 951 0.0050 0.0059 0.0053 0.0055 0.0002 0.1824 0.1849
9000 951 0.0057 0.0086 0.0059 0.0057 0.0003 0.1813 0.1701
10000 953 0.0063 0.0070 0.0066 0.0064 0.0003 0.1841 0.1797

Loops - do while loop result 0

Loops - do while loop result 0Loops - do while loop result 0

Input:

0

Output:

0

Loops - do while loop result 1000

Loops - do while loop result 1000Loops - do while loop result 1000

Input:

1000

Output:

500500

Loops - do while loop result 2000

Loops - do while loop result 2000Loops - do while loop result 2000

Input:

2000

Output:

2001000

Loops - do while loop result 3000

Loops - do while loop result 3000Loops - do while loop result 3000

Input:

3000

Output:

4501500

Loops - do while loop result 4000

Loops - do while loop result 4000Loops - do while loop result 4000

Input:

4000

Output:

8002000

Loops - do while loop result 5000

Loops - do while loop result 5000Loops - do while loop result 5000

Input:

5000

Output:

12502500

Loops - do while loop result 6000

Loops - do while loop result 6000Loops - do while loop result 6000

Input:

6000

Output:

18003000

Loops - do while loop result 7000

Loops - do while loop result 7000Loops - do while loop result 7000

Input:

7000

Output:

24503500

Loops - do while loop result 8000

Loops - do while loop result 8000Loops - do while loop result 8000

Input:

8000

Output:

32004000

Loops - do while loop result 9000

Loops - do while loop result 9000Loops - do while loop result 9000

Input:

9000

Output:

40504500

Loops - do while loop result 10000

Loops - do while loop result 10000Loops - do while loop result 10000

Input:

10000

Output:

50005000

The overview over the suite is in chapter Suite Loops.

The report for this suite was generated in 56.283 seconds.