Skip to content

Commit c63ac36

Browse files
committed
Remove instrumentation (saves 4us on stm32f103c8)
1 parent 7ac91a2 commit c63ac36

File tree

5 files changed

+245
-251
lines changed

5 files changed

+245
-251
lines changed
Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
depth,error_size,destructor_percentage,pulse_us
2-
50,4,0,208.54
3-
35,4,0,149.08
4-
15,4,0,77.62
5-
5,4,0,41.04
6-
1,4,0,24.58
7-
50,4,25,314.12
8-
35,4,25,225.96
9-
15,4,25,114.12
10-
5,4,25,56.71
11-
1,4,25,30.42
12-
50,4,50,449.25
13-
35,4,50,331.75
14-
15,4,50,158.46
15-
5,4,50,69.96
16-
1,4,50,30.42
17-
50,4,100,733.71
18-
35,4,100,522.83
19-
15,4,100,234.17
20-
5,4,100,90.88
21-
1,4,100,30.38
22-
50,16,0,208.5
23-
35,16,0,151.25
24-
15,16,0,77.58
25-
5,16,0,41.08
26-
1,16,0,26.58
27-
50,16,25,314.25
28-
35,16,25,225.96
29-
15,16,25,115.5
30-
5,16,25,59.17
31-
1,16,25,33.92
32-
50,16,50,449.04
33-
35,16,50,331.5
34-
15,16,50,158.29
35-
5,16,50,69.96
36-
1,16,50,33.92
37-
50,16,100,733.75
38-
35,16,100,523.08
39-
15,16,100,234.42
40-
5,16,100,91.12
41-
1,16,100,33.92
42-
50,65,0,219.21
43-
35,65,0,162.0
44-
15,65,0,88.33
45-
5,65,0,51.79
46-
1,65,0,37.29
47-
50,65,25,324.88
48-
35,65,25,236.79
49-
15,65,25,126.33
50-
5,65,25,70.04
51-
1,65,25,45.0
52-
50,65,50,460.12
53-
35,65,50,342.62
54-
15,65,50,169.33
55-
5,65,50,80.88
56-
1,65,50,45.0
57-
50,65,100,744.62
58-
35,65,100,533.71
59-
15,65,100,244.0
60-
5,65,100,100.79
61-
1,65,100,45.0
2+
50,4,0,203.21
3+
35,4,0,147.71
4+
15,4,0,73.21
5+
5,4,0,36.0
6+
1,4,0,21.29
7+
50,4,25,293.96
8+
35,4,25,210.62
9+
15,4,25,101.08
10+
5,4,25,50.29
11+
1,4,25,28.46
12+
50,4,50,377.88
13+
35,4,50,273.54
14+
15,4,50,129.21
15+
5,4,50,57.21
16+
1,4,50,28.46
17+
50,4,100,551.33
18+
35,4,100,391.21
19+
15,4,100,177.75
20+
5,4,100,70.88
21+
1,4,100,28.5
22+
50,16,0,213.58
23+
35,16,0,158.12
24+
15,16,0,83.58
25+
5,16,0,46.46
26+
1,16,0,31.71
27+
50,16,25,304.38
28+
35,16,25,221.04
29+
15,16,25,111.54
30+
5,16,25,60.75
31+
1,16,25,38.96
32+
50,16,50,388.33
33+
35,16,50,284.0
34+
15,16,50,139.67
35+
5,16,50,67.67
36+
1,16,50,38.96
37+
50,16,100,561.79
38+
35,16,100,401.62
39+
15,16,100,188.21
40+
5,16,100,81.38
41+
1,16,100,38.96
42+
50,65,0,213.67
43+
35,65,0,158.17
44+
15,65,0,83.71
45+
5,65,0,46.54
46+
1,65,0,31.79
47+
50,65,25,304.71
48+
35,65,25,221.38
49+
15,65,25,111.92
50+
5,65,25,61.17
51+
1,65,25,39.38
52+
50,65,50,388.71
53+
35,65,50,284.42
54+
15,65,50,140.08
55+
5,65,50,68.08
56+
1,65,50,39.38
57+
50,65,100,562.17
58+
35,65,100,401.96
59+
15,65,100,188.67
60+
5,65,100,81.75
61+
1,65,100,39.38

benchmark/nearpoint.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ std::array<std::uint32_t, 18> const _normal_table_data = {
2626
(1 << 11) | 1, // Block(start=1, count=1)
2727
(3 << 11) | 2, // Block(start=3, count=2)
2828
(5 << 11) | 2, // Block(start=5, count=2)
29-
(7 << 11) | 8, // Block(start=7, count=8)
30-
(15 << 11) | 20, // Block(start=15, count=20)
31-
(35 << 11) | 25, // Block(start=35, count=25)
29+
(7 << 11) | 7, // Block(start=7, count=7)
30+
(14 << 11) | 20, // Block(start=14, count=20)
31+
(34 << 11) | 26, // Block(start=34, count=26)
3232
(60 << 11) | 27, // Block(start=60, count=27)
3333
(87 << 11) | 29, // Block(start=87, count=29)
3434
(116 << 11) | 30, // Block(start=116, count=30)

benchmark/order.ld

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ SECTIONS {
3737
*(.text._ZN3hal26single_exception_allocatorD2Ev)
3838
*(.text._ZN3hal26single_exception_allocatorD0Ev)
3939
*(.text._ZN28single_block_memory_resourceILj256EED2Ev)
40+
*(.text._ZN13test_error_16D2Ev)
4041
*(.text._ZN28single_block_memory_resourceILj256EE13do_deallocateEPvjj)
4142
*(.text._ZN3hal7stm32f14uart16driver_configureERKNS_6serial8settingsE)
4243
*(.text._ZN2ke16capture_cpu_coreERNS_12cortex_m_cpuE)
@@ -48,6 +49,7 @@ SECTIONS {
4849
*(.text.__wrap___cxa_end_cleanup)
4950
*(.text.__wrap__Unwind_Resume)
5051
*(.text._ZdlPvj)
52+
*(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv)
5153
*(.text._ZdlPv)
5254
*(.text._ZdlPvSt11align_val_t)
5355
*(.text.__aeabi_atexit)
@@ -92,7 +94,6 @@ SECTIONS {
9294
*(.text._ZNSt12length_errorD0Ev)
9395
*(.text._ZNSt12out_of_rangeD0Ev)
9496
*(.text._ZNSs4_Rep10_M_destroyERKSaIcE)
95-
*(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv)
9697
*(.text._ZNK12_GLOBAL__N_122generic_error_category4nameEv)
9798
*(.text._ZNK12_GLOBAL__N_122generic_error_category10equivalentEiRKSt15error_condition)
9899
*(.text._ZN12_GLOBAL__N_122generic_error_categoryD2Ev)
@@ -264,17 +265,17 @@ SECTIONS {
264265
*(.text.__wrap___cxa_throw)
265266
/* [9] Unwind info 0x8008afb0 */
266267
*(.text._ZNK10__cxxabiv121__vmi_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE)
267-
/* [10] Unwind info 0x80a8b0b0 */
268+
/* [10] Unwind info 0x7ffff024 */
269+
*(.text._Z20depth_01_percent_025v.isra.0)
270+
/* [11] Unwind info 0x8004a9b0 */
271+
*(.text._Z20depth_01_percent_000v.isra.0)
272+
/* [12] Unwind info 0x80a8b0b0 */
268273
*(.text.unlikely._ZN3hal7stm32f127throw_if_pin_is_unavailableENS0_10pin_selectE.part.0)
269274
*(.text.unlikely._ZN3hal7stm32f112_GLOBAL__N_124get_enable_register_infoENS0_10peripheralE.part.0)
270275
*(.text._ZNSt12length_errorC2EPKc)
271276
*(.text._ZNSt12out_of_rangeC2EPKc)
272277
*(.text._ZNSs4_Rep9_S_createEjjRKSaIcE)
273-
/* [11] Unwind info 0x7ffff024 */
274-
*(.text._Z20depth_01_percent_025v.isra.0)
275-
/* [12] Unwind info 0x8004a9b0 */
276-
*(.text._Z20depth_01_percent_000v.isra.0)
277-
/* [13] Unwind info 0x7ffff76c */
278+
/* [13] Unwind info 0x7ffff774 */
278279
*(.text._ZNK12_GLOBAL__N_122generic_error_category7messageB5cxx11Ei)
279280
/* [14] Unwind info 0x80b108a9 */
280281
*(.text.__wrap___cxa_rethrow)
@@ -581,7 +582,7 @@ SECTIONS {
581582
*(.text._ZN3hal7stm32f112gpio_manager6output12driver_levelEb)
582583
/* [165] Unwind info 0x8003aab0 */
583584
*(.text._ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PPv)
584-
/* [166] Unwind info 0x7ffff778 */
585+
/* [166] Unwind info 0x7ffff780 */
585586
*(.text._ZNKSt3_V214error_category10_M_messageB5cxx11Ei)
586587
/* [167] Unwind info 0x7fffff30 */
587588
*(.text.unlikely._ZSt19__throw_logic_errorPKc)

0 commit comments

Comments
 (0)