File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 336
336
if [ " $2 " = " true" ]; then
337
337
clang++ $LOCAL_CFLAGS -std=c++11 demo.cpp target/debug/libldk.a -ldl
338
338
strip ./a.out
339
+ time ./a.out
339
340
echo " C++ Bin size and runtime w/o optimization:"
340
341
ls -lha a.out
341
- ./a.out > /dev/null
342
342
fi
343
343
344
344
# Then, check with memory sanitizer, if we're on Linux and have rustc nightly
@@ -490,9 +490,9 @@ if [ "$2" = "true" ]; then
490
490
fi
491
491
492
492
strip ./a.out
493
+ time ./a.out
493
494
echo " C++ Bin size and runtime with only RL (LTO) optimized:"
494
495
ls -lha a.out
495
- ./a.out > /dev/null
496
496
497
497
if [ " $CLANGPP " != " " ]; then
498
498
# If we can use cross-language LTO, use it for building C dependencies (i.e. libsecp256k1) as well
@@ -562,9 +562,9 @@ if [ "$CLANGPP" != "" -a "$LLD" != "" ]; then
562
562
$CLANGPP $LOCAL_CFLAGS -flto -fuse-ld=$LLD -O2 -c demo.cpp -o demo.o
563
563
$CLANGPP $LOCAL_CFLAGS -flto -fuse-ld=$LLD -Wl,--lto-O2 -Wl,-O2 -O2 demo.o target/release/libldk.a -ldl
564
564
strip ./a.out
565
+ time ./a.out
565
566
echo " C++ Bin size and runtime with cross-language LTO:"
566
567
ls -lha a.out
567
- ./a.out > /dev/null
568
568
fi
569
569
fi
570
570
else
You can’t perform that action at this time.
0 commit comments