gr-lfast icon indicating copy to clipboard operation
gr-lfast copied to clipboard

Test program

Open ashtum opened this issue 7 years ago • 2 comments

Hi , Is there any test program or GRC flow graph for becnhmarking this block ?

ashtum avatar Nov 18 '17 14:11 ashtum

Hi ashtum, yes. Once you make install, you can run 'test-lfast'.

ghostop14 avatar Nov 20 '17 19:11 ghostop14

Thanks , It seems it works properly , but at the end it have some error . My CPU : Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz

Testing 2nd order Costas Loop with 8192 samples... Original Code Run Time: 0.000547 s (14982441.000000 sps) LFAST Code Run Time: 0.000332 s (24661492.000000 sps) Speedup: 64.60% faster

Testing 4th order Costas Loop with 8192 samples... Original Code Run Time: 0.000566 s (14484008.000000 sps) LFAST Code Run Time: 0.000380 s (21546708.000000 sps) Speedup: 48.76% faster


Testing AGC with 8192 samples... Original Code Run Time: 0.000141 s (57938512.000000 sps) LFAST Code Run Time: 0.000134 s (61184924.000000 sps) Speedup: 5.60% faster


Testing Complex->Real->Char->Vector with 8192 samples... Original Code Run Time: 0.000003 s (2387280128.000000 sps) LFAST Code Run Time: 0.000003 s (2359657728.000000 sps) Speedup: -1.16% faster

*** Error in `./test-lfast': double free or corruption (!prev): 0x0000000000c33780 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f3479d197e5] /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f3479d2237a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f3479d2653c] /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.7.10(+0x60d0a)[0x7f3478ae5d0a] /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.7.10(+0x60cdc)[0x7f3478ae5cdc] /lib/x86_64-linux-gnu/libc.so.6(__cxa_finalize+0x9a)[0x7f3479cdc36a] /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.7.10(+0x2ada3)[0x7f3478aafda3] ======= Memory map: ======== 00400000-0041a000 r-xp 00000000 08:02 4199817 /home/ashtum/Downloads/gr-lfast-master/build/lib/test-lfast 00619000-0061a000 r--p 00019000 08:02 4199817 /home/ashtum/Downloads/gr-lfast-master/build/lib/test-lfast 0061a000-0061b000 rw-p 0001a000 08:02 4199817 /home/ashtum/Downloads/gr-lfast-master/build/lib/test-lfast 00c18000-00c59000 rw-p 00000000 00:00 0 [heap] 7f3474000000-7f3474021000 rw-p 00000000 00:00 0 7f3474021000-7f3478000000 ---p 00000000 00:00 0 7f34785b3000-7f347862e000 r-xp 00000000 08:02 533681 /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0.25.0 7f347862e000-7f347882d000 ---p 0007b000 08:02 533681 /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0.25.0 7f347882d000-7f347882f000 r--p 0007a000 08:02 533681 /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0.25.0 7f347882f000-7f3478833000 rw-p 0007c000 08:02 533681 /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0.25.0 7f3478833000-7f3478881000 r-xp 00000000 08:02 525226 /usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so.3.7.10 7f3478881000-7f3478a81000 ---p 0004e000 08:02 525226 /usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so.3.7.10 7f3478a81000-7f3478a84000 r--p 0004e000 08:02 525226 /usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so.3.7.10 7f3478a84000-7f3478a85000 rw-p 00051000 08:02 525226 /usr/lib/x86_64-linux-gnu/libgnuradio-pmt.so.3.7.10 7f3478a85000-7f3478b7a000 r-xp 00000000 08:02 530596 /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.7.10 7f3478b7a000-7f3478d7a000 ---p 000f5000 08:02 530596 /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.7.10 7f3478d7a000-7f3478d7f000 r--p 000f5000 08:02 530596 /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.7.10 7f3478d7f000-7f3478d80000 rw-p 000fa000 08:02 530596 /usr/lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.7.10 7f3478d80000-7f3478d83000 r-xp 00000000 08:02 5242972 /lib/x86_64-linux-gnu/libdl-2.23.so 7f3478d83000-7f3478f82000 ---p 00003000 08:02 5242972 /lib/x86_64-linux-gnu/libdl-2.23.so 7f3478f82000-7f3478f83000 r--p 00002000 08:02 5242972 /lib/x86_64-linux-gnu/libdl-2.23.so 7f3478f83000-7f3478f84000 rw-p 00003000 08:02 5242972 /lib/x86_64-linux-gnu/libdl-2.23.so 7f3478f84000-7f3478f8b000 r-xp 00000000 08:02 5242969 /lib/x86_64-linux-gnu/librt-2.23.so 7f3478f8b000-7f347918a000 ---p 00007000 08:02 5242969 /lib/x86_64-linux-gnu/librt-2.23.so 7f347918a000-7f347918b000 r--p 00006000 08:02 5242969 /lib/x86_64-linux-gnu/librt-2.23.so 7f347918b000-7f347918c000 rw-p 00007000 08:02 5242969 /lib/x86_64-linux-gnu/librt-2.23.so 7f347918c000-7f34791c6000 r-xp 00000000 08:02 526109 /usr/lib/liblog4cpp.so.5.0.5 7f34791c6000-7f34793c6000 ---p 0003a000 08:02 526109 /usr/lib/liblog4cpp.so.5.0.5 7f34793c6000-7f34793c8000 r--p 0003a000 08:02 526109 /usr/lib/liblog4cpp.so.5.0.5 7f34793c8000-7f34793c9000 rw-p 0003c000 08:02 526109 /usr/lib/liblog4cpp.so.5.0.5 7f34793c9000-7f34793e1000 r-xp 00000000 08:02 5242966 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f34793e1000-7f34795e0000 ---p 00018000 08:02 5242966 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f34795e0000-7f34795e1000 r--p 00017000 08:02 5242966 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f34795e1000-7f34795e2000 rw-p 00018000 08:02 5242966 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f34795e2000-7f34795e6000 rw-p 00000000 00:00 0 7f34795e6000-7f347960a000 r-xp 00000000 08:02 541294 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0 7f347960a000-7f3479809000 ---p 00024000 08:02 541294 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0 7f3479809000-7f347980b000 r--p 00023000 08:02 541294 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0 7f347980b000-7f347980c000 rw-p 00025000 08:02 541294 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.58.0 7f347980c000-7f3479823000 r-xp 00000000 08:02 532899 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 7f3479823000-7f3479a22000 ---p 00017000 08:02 532899 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 7f3479a22000-7f3479a23000 r--p 00016000 08:02 532899 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 7f3479a23000-7f3479a24000 rw-p 00017000 08:02 532899 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 7f3479a24000-7f3479a9e000 r-xp 00000000 08:02 541899 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0 7f3479a9e000-7f3479c9e000 ---p 0007a000 08:02 541899 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0 7f3479c9e000-7f3479ca1000 r--p 0007a000 08:02 541899 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0 7f3479ca1000-7f3479ca2000 rw-p 0007d000 08:02 541899 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0 7f3479ca2000-7f3479e62000 r-xp 00000000 08:02 5247374 /lib/x86_64-linux-gnu/libc-2.23.so 7f3479e62000-7f347a062000 ---p 001c0000 08:02 5247374 /lib/x86_64-linux-gnu/libc-2.23.so 7f347a062000-7f347a066000 r--p 001c0000 08:02 5247374 /lib/x86_64-linux-gnu/libc-2.23.so 7f347a066000-7f347a068000 rw-p 001c4000 08:02 5247374 /lib/x86_64-linux-gnu/libc-2.23.so 7f347a068000-7f347a06c000 rw-p 00000000 00:00 0 7f347a06c000-7f347a082000 r-xp 00000000 08:02 5247530 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f347a082000-7f347a281000 ---p 00016000 08:02 5247530 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f347a281000-7f347a282000 rw-p 00015000 08:02 5247530 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f347a282000-7f347a38a000 r-xp 00000000 08:02 5242978 /lib/x86_64-linux-gnu/libm-2.23.so 7f347a38a000-7f347a589000 ---p 00108000 08:02 5242978 /lib/x86_64-linux-gnu/libm-2.23.so 7f347a589000-7f347a58a000 r--p 00107000 08:02 5242978 /lib/x86_64-linux-gnu/libm-2.23.so 7f347a58a000-7f347a58b000 rw-p 00108000 08:02 5242978 /lib/x86_64-linux-gnu/libm-2.23.so 7f347a58b000-7f347a6fd000 r-xp 00000000 08:02 532093 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 7f347a6fd000-7f347a8fd000 ---p 00172000 08:02 532093 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 7f347a8fd000-7f347a907000 r--p 00172000 08:02 532093 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 7f347a907000-7f347a909000 rw-p 0017c000 08:02 532093 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 7f347a909000-7f347a90d000 rw-p 00000000 00:00 0 7f347a90d000-7f347ab30000 r-xp 00000000 08:02 530592 /usr/local/lib/libvolk.so.1.3 7f347ab30000-7f347ad30000 ---p 00223000 08:02 530592 /usr/local/lib/libvolk.so.1.3 7f347ad30000-7f347ad31000 r--p 00223000 08:02 530592 /usr/local/lib/libvolk.so.1.3 7f347ad31000-7f347adb2000 rw-p 00224000 08:02 530592 /usr/local/lib/libvolk.so.1.3 7f347adb2000-7f347adb3000 rw-p 00000000 00:00 0 7f347adb3000-7f347b06c000 r-xp 00000000 08:02 530597 /usr/lib/x86_64-linux-gnu/libgnuradio-blocks.so.3.7.10 7f347b06c000-7f347b26b000 ---p 002b9000 08:02 530597 /usr/lib/x86_64-linux-gnu/libgnuradio-blocks.so.3.7.10 7f347b26b000-7f347b2a3000 r--p 002b8000 08:02 530597 /usr/lib/x86_64-linux-gnu/libgnuradio-blocks.so.3.7.10 7f347b2a3000-7f347b2a4000 rw-p 002f0000 08:02 530597 /usr/lib/x86_64-linux-gnu/libgnuradio-blocks.so.3.7.10 7f347b2a4000-7f347b2de000 r-xp 00000000 08:02 541213 /usr/lib/x86_64-linux-gnu/libcppunit-1.13.so.0.0.2 7f347b2de000-7f347b4de000 ---p 0003a000 08:02 541213 /usr/lib/x86_64-linux-gnu/libcppunit-1.13.so.0.0.2 7f347b4de000-7f347b4e0000 r--p 0003a000 08:02 541213 /usr/lib/x86_64-linux-gnu/libcppunit-1.13.so.0.0.2 7f347b4e0000-7f347b4e1000 rw-p 0003c000 08:02 541213 /usr/lib/x86_64-linux-gnu/libcppunit-1.13.so.0.0.2 7f347b4e1000-7f347b4e4000 r-xp 00000000 08:02 532901 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 7f347b4e4000-7f347b6e3000 ---p 00003000 08:02 532901 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 7f347b6e3000-7f347b6e4000 r--p 00002000 08:02 532901 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 7f347b6e4000-7f347b6e5000 rw-p 00003000 08:02 532901 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 7f347b6e5000-7f347b734000 r-xp 00000000 08:02 556778 /usr/local/lib/libgnuradio-pmt-3.7.12git.so.0.0.0 7f347b734000-7f347b934000 ---p 0004f000 08:02 556778 /usr/local/lib/libgnuradio-pmt-3.7.12git.so.0.0.0 7f347b934000-7f347b937000 r--p 0004f000 08:02 556778 /usr/local/lib/libgnuradio-pmt-3.7.12git.so.0.0.0 7f347b937000-7f347b938000 rw-p 00052000 08:02 556778 /usr/local/lib/libgnuradio-pmt-3.7.12git.so.0.0.0 7f347b938000-7f347ba31000 r-xp 00000000 08:02 556774 /usr/local/lib/libgnuradio-runtime-3.7.12git.so.0.0.0 7f347ba31000-7f347bc31000 ---p 000f9000 08:02 556774 /usr/local/lib/libgnuradio-runtime-3.7.12git.so.0.0.0 7f347bc31000-7f347bc36000 r--p 000f9000 08:02 556774 /usr/local/lib/libgnuradio-runtime-3.7.12git.so.0.0.0 7f347bc36000-7f347bc38000 rw-p 000fe000 08:02 556774 /usr/local/lib/libgnuradio-runtime-3.7.12git.so.0.0.0 7f347bc38000-7f347bc5e000 r-xp 00000000 08:02 5242897 /lib/x86_64-linux-gnu/ld-2.23.so 7f347be19000-7f347be27000 rw-p 00000000 00:00 0 7f347be59000-7f347be5d000 rw-p 00000000 00:00 0 7f347be5d000-7f347be5e000 r--p 00025000 08:02 5242897 /lib/x86_64-linux-gnu/ld-2.23.so 7f347be5e000-7f347be5f000 rw-p 00026000 08:02 5242897 /lib/x86_64-linux-gnu/ld-2.23.so 7f347be5f000-7f347be60000 rw-p 00000000 00:00 0 7ffc7f974000-7ffc7f995000 rw-p 00000000 00:00 0 [stack] 7ffc7f9f9000-7ffc7f9fb000 r--p 00000000 00:00 0 [vvar] 7ffc7f9fb000-7ffc7f9fd000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted (core dumped)

ashtum avatar Nov 22 '17 18:11 ashtum