|
1 | 1 | The test was launched by `run_bench.sh` script. The testing hardware is: Intel Core i7-4770, 16GB DDR3, SSD, Linux Mint 18.1 64-bit.
|
2 | 2 | The output:
|
3 | 3 | ```
|
4 |
| -Test 4_2_5 |
| 4 | +Test huffman_encoding |
5 | 5 |
|
6 | 6 | Compiling programs..
|
7 | 7 | Generate test data..
|
8 | 8 | Measuring performance..
|
9 | 9 | ../common/compare_performance.sh
|
10 | 10 | Averaging performance of 10 runs..
|
11 |
| -./main_cpp: |
12 |
| - test inp_low: .00168 sec |
13 |
| - test inp_mid: .02829 sec |
14 |
| - test inp_hi: .27003 sec |
15 |
| -
|
16 |
| -./main_rust: |
17 |
| - test inp_low: .00169 sec |
18 |
| - test inp_mid: .04197 sec |
19 |
| - test inp_hi: .43336 sec |
| 11 | +./main_cpp: |
| 12 | + test inp_low: runtime .00173 sec, core .00028 sec |
| 13 | + test inp_mid: runtime .02906 sec, core .02627 sec |
| 14 | + test inp_hi: runtime .26562 sec, core .25239 sec |
| 15 | + |
| 16 | +./main_rust: |
| 17 | + test inp_low: runtime .00165 sec, core .00040 sec |
| 18 | + test inp_mid: runtime .03875 sec, core .03670 sec |
| 19 | + test inp_hi: runtime .41500 sec, core .40053 sec |
| 20 | + |
| 21 | +Test huffman_decoding |
20 | 22 |
|
21 |
| -Test 4_2_6 |
22 |
| -
|
23 |
| -Compiling programs.. |
24 |
| -Generate test data.. |
| 23 | +Compiling programs.. |
| 24 | +Generate test data.. |
25 | 25 | Measuring performance..
|
26 | 26 | ../common/compare_performance.sh
|
27 | 27 | Averaging performance of 10 runs..
|
28 |
| -./main_cpp: |
29 |
| - test inp_low: .00185 sec |
30 |
| - test inp_mid: .04698 sec |
31 |
| - test inp_hi: .43825 sec |
32 |
| -
|
33 |
| -./main_rust: |
34 |
| - test inp_low: .00152 sec |
35 |
| - test inp_mid: .02622 sec |
36 |
| - test inp_hi: .24990 sec |
37 |
| -
|
38 |
| -Test 6_1_4 |
39 |
| -
|
| 28 | +./main_cpp: |
| 29 | + test inp_low: runtime .00165 sec, core .00019 sec |
| 30 | + test inp_mid: runtime .02519 sec, core .01828 sec |
| 31 | + test inp_hi: runtime .23616 sec, core .18015 sec |
| 32 | + |
| 33 | +./main_rust: |
| 34 | + test inp_low: runtime .00153 sec, core .00023 sec |
| 35 | + test inp_mid: runtime .02639 sec, core .02162 sec |
| 36 | + test inp_hi: runtime .29077 sec, core .21806 sec |
| 37 | + |
| 38 | +Test binary_search |
| 39 | + |
40 | 40 | Compiling programs..
|
41 |
| -Generate test data.. |
| 41 | +Generate test data.. |
42 | 42 | Measuring performance..
|
43 |
| -../common/compare_performance.sh |
44 |
| -Averaging performance of 10 runs.. |
45 |
| -./main_cpp: |
46 |
| - test inp_low: .00288 sec |
47 |
| - test inp_mid: .15820 sec |
48 |
| - test inp_hi: 1.85318 sec |
49 |
| -
|
| 43 | +../common/compare_performance.sh |
| 44 | +Averaging performance of 10 runs.. |
| 45 | +./main_cpp: |
| 46 | + test inp_low: runtime .00236 sec, core .00007 sec |
| 47 | + test inp_mid: runtime .10366 sec, core .01847 sec |
| 48 | + test inp_hi: runtime 1.20806 sec, core .35945 sec |
| 49 | + |
50 | 50 | ./main_rust:
|
51 |
| - test inp_low: .00223 sec |
52 |
| - test inp_mid: .12787 sec |
53 |
| - test inp_hi: 1.55638 sec |
| 51 | + test inp_low: runtime .00179 sec, core .00008 sec |
| 52 | + test inp_mid: runtime .07810 sec, core .01910 sec |
| 53 | + test inp_hi: runtime 1.12885 sec, core .41750 sec |
54 | 54 |
|
55 |
| -Test 6_4_5 |
| 55 | +Test mergesort |
56 | 56 |
|
57 | 57 | Compiling programs..
|
58 | 58 | Generate test data..
|
59 | 59 | Measuring performance..
|
60 | 60 | ../common/compare_performance.sh
|
61 | 61 | Averaging performance of 10 runs..
|
62 | 62 | ./main_cpp:
|
63 |
| - test inp_low: .00312 sec |
64 |
| - test inp_mid: .19478 sec |
65 |
| - test inp_hi: 2.10201 sec |
| 63 | + test inp_low: runtime .00310 sec, core .00093 sec |
| 64 | + test inp_mid: runtime .19630 sec, core .12184 sec |
| 65 | + test inp_hi: runtime 2.19702 sec, core 1.45821 sec |
66 | 66 |
|
67 | 67 | ./main_rust:
|
68 |
| - test inp_low: .00254 sec |
69 |
| - test inp_mid: .15996 sec |
70 |
| - test inp_hi: 1.83357 sec |
| 68 | + test inp_low: runtime .00248 sec, core .00092 sec |
| 69 | + test inp_mid: runtime .17509 sec, core .12201 sec |
| 70 | + test inp_hi: runtime 2.00531 sec, core 1.44780 sec |
71 | 71 |
|
72 |
| -Test 8_3_8 |
| 72 | +Test levenshtein |
73 | 73 |
|
74 | 74 | Compiling programs..
|
75 | 75 | Generate test data..
|
76 | 76 | Measuring performance..
|
77 | 77 | ../common/compare_performance.sh
|
78 | 78 | Averaging performance of 10 runs..
|
79 | 79 | ./main_cpp:
|
80 |
| - test inp_low: .00405 sec |
81 |
| - test inp_mid: .01352 sec |
82 |
| - test inp_hi: .04957 sec |
| 80 | + test inp_low: runtime .00411 sec, core .00267 sec |
| 81 | + test inp_mid: runtime .01765 sec, core .01610 sec |
| 82 | + test inp_hi: runtime .07393 sec, core .07237 sec |
83 | 83 |
|
84 | 84 | ./main_rust:
|
85 |
| - test inp_low: .00410 sec |
86 |
| - test inp_mid: .01416 sec |
87 |
| - test inp_hi: .05289 sec |
| 85 | + test inp_low: runtime .00665 sec, core .00438 sec |
| 86 | + test inp_mid: runtime .02114 sec, core .01922 sec |
| 87 | + test inp_hi: runtime .08106 sec, core .07860 sec |
| 88 | +
|
88 | 89 | ```
|
0 commit comments