Skip to content

Instantly share code, notes, and snippets.

@nickdesaulniers
Created January 19, 2024 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdesaulniers/1092b3748b6810ae97053973c40b19a2 to your computer and use it in GitHub Desktop.
Save nickdesaulniers/1092b3748b6810ae97053973c40b19a2 to your computer and use it in GitHub Desktop.
bloaty -n 0 -s file after.a -- before.a
FILE SIZE VM SIZE
-------------- --------------
+234% +2.05Ki +212% +816 .rodata.cst16
+1.8% +1.48Ki [ = ] 0 .symtab
+0.8% +920 [ = ] 0 .strtab
+31% +864 +33% +870 .text._ZN22__llvm_libc_18_0_0_git8internal27hexadecimal_string_to_floatIeEENS_14StrToNumResultINS0_13ExpandedFloatIT_EEEEPKccNS0_14RoundDirectionE
+39% +736 +44% +760 .text._ZN22__llvm_libc_18_0_0_git8internal20decimal_exp_to_floatIeEENS0_18FloatConvertReturnIT_EENS0_13ExpandedFloatIS3_EEPKcbNS0_14RoundDirectionE
[NEW] +480 [NEW] +411 .text._ZN22__llvm_libc_18_0_0_gitL31construct_thread_name_file_pathERNS_3cpp12StringStreamEi
[NEW] +288 [NEW] +223 .text._ZN22__llvm_libc_18_0_0_git11printf_core11FloatWriter18write_middle_blockEj
[NEW] +264 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal27hexadecimal_string_to_floatIdEENS_14StrToNumResultINS0_13ExpandedFloatIT_EEEEPKccNS0_14RoundDirectionE
[NEW] +176 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal19binary_exp_to_floatIeEENS0_18FloatConvertReturnIT_EENS0_13ExpandedFloatIS3_EEbNS0_14RoundDirectionE
+16% +144 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal20decimal_exp_to_floatIdEENS0_18FloatConvertReturnIT_EENS0_13ExpandedFloatIS3_EEPKcbNS0_14RoundDirectionE
+55% +144 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal23decimal_string_to_floatIdEENS_14StrToNumResultINS0_13ExpandedFloatIT_EEEEPKccNS0_14RoundDirectionE
[NEW] +136 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_gitL31construct_thread_name_file_pathERNS_3cpp12StringStreamEi
+6.9% +128 +8.2% +128 .text._ZN22__llvm_libc_18_0_0_git11printf_core17vfprintf_internalEP4FILEPKcRNS_8internal7ArgListE
+0.2% +128 [ = ] 0 [ELF Headers]
[NEW] +112 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core11FloatWriter18write_middle_blockEj
+15% +96 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core17vfprintf_internalEP4FILEPKcRNS_8internal7ArgListE
+7.5% +96 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal25simple_decimal_conversionIeEENS0_18FloatConvertReturnIT_EEPKcNS0_14RoundDirectionE
+2.8% +96 +3.0% +96 .text._ZN22__llvm_libc_18_0_0_git8internal23decimal_string_to_floatIdEENS_14StrToNumResultINS0_13ExpandedFloatIT_EEEEPKccNS0_14RoundDirectionE
+2.0% +96 +2.1% +96 .text._ZN22__llvm_libc_18_0_0_git8internal25simple_decimal_conversionIdEENS0_18FloatConvertReturnIT_EEPKcNS0_14RoundDirectionE
+3.2% +80 +3.3% +80 .text._ZN22__llvm_libc_18_0_0_git11printf_core28convert_float_dec_auto_typedIeTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
+10.0% +80 +29% +125 .text._ZN22__llvm_libc_18_0_0_git8internal26nan_mantissa_from_ncharseqENS_3cpp11string_viewE
+0.2% +80 [ = ] 0 [AR Symbol Table]
+0.9% +77 +0.2% +17 .rodata.str1.1
+18% +72 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core11FloatWriter16write_last_blockEjmNS0_14RoundDirectionEic
+17% +72 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core27convert_float_dec_exp_typedIdTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
+17% +72 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core27convert_float_dec_exp_typedIeTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
+18% +72 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core28convert_float_dec_auto_typedIeTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
+4.2% +72 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal25simple_decimal_conversionIdEENS0_18FloatConvertReturnIT_EEPKcNS0_14RoundDirectionE
+3.3% +64 +3.4% +64 .text._ZN22__llvm_libc_18_0_0_git11printf_core11FloatWriter16write_last_blockEjmNS0_14RoundDirectionEic
+2.6% +64 +2.3% +54 .text._ZN22__llvm_libc_18_0_0_git11printf_core21convert_float_hex_expEPNS0_6WriterERKNS0_13FormatSectionE
+1.8% +64 +1.9% +64 .text._ZN22__llvm_libc_18_0_0_git8internal25simple_decimal_conversionIeEENS0_18FloatConvertReturnIT_EEPKcNS0_14RoundDirectionE
+1.9% +64 +2.0% +64 .text._ZN22__llvm_libc_18_0_0_git8internal25simple_decimal_conversionIfEENS0_18FloatConvertReturnIT_EEPKcNS0_14RoundDirectionE
+39% +60 +70% +61 .text._ZN22__llvm_libc_18_0_0_git10scanf_core23write_float_with_lengthEPcRKNS0_13FormatSectionE
+18% +59 +29% +59 .text.sigaction
+7.2% +52 +7.8% +51 .text._ZN22__llvm_libc_18_0_0_git11printf_core11convert_intEPNS0_6WriterERKNS0_13FormatSectionE
+12% +49 +18% +49 .text.pthread_create
+30% +48 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core11printf_mainEPNS0_6WriterEPKcRNS_8internal7ArgListE
+12% +48 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core28convert_float_dec_auto_typedIdTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
+8.6% +48 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal20decimal_exp_to_floatIeEENS0_18FloatConvertReturnIT_EENS0_13ExpandedFloatIS3_EEPKcbNS0_14RoundDirectionE
+27% +48 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal23decimal_string_to_floatIeEENS_14StrToNumResultINS0_13ExpandedFloatIT_EEEEPKccNS0_14RoundDirectionE
+4.4% +48 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal25simple_decimal_conversionIfEENS0_18FloatConvertReturnIT_EEPKcNS0_14RoundDirectionE
+27% +48 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal27hexadecimal_string_to_floatIeEENS_14StrToNumResultINS0_13ExpandedFloatIT_EEEEPKccNS0_14RoundDirectionE
+2.7% +48 +2.8% +48 .text._ZN22__llvm_libc_18_0_0_git10scanf_core6ParserINS_8internal7ArgListEE16get_next_sectionEv
+1.4% +48 +1.4% +45 .text._ZN22__llvm_libc_18_0_0_git8internal20decimal_exp_to_floatIdEENS0_18FloatConvertReturnIT_EENS0_13ExpandedFloatIS3_EEPKcbNS0_14RoundDirectionE
+1.0% +48 +1.1% +48 .text._ZN22__llvm_libc_18_0_0_git8internal27hexadecimal_string_to_floatIdEENS_14StrToNumResultINS0_13ExpandedFloatIT_EEEEPKccNS0_14RoundDirectionE
+26% +47 +84% +47 .text.signal
+12% +46 +42% +110 .text.fstat
+12% +46 +42% +110 .text.lstat
+11% +43 +40% +107 .text.stat
+22% +40 +74% +40 .text.setjmp
+1.3% +32 +1.3% +32 .text._ZN22__llvm_libc_18_0_0_git11printf_core6ParserINS_8internal7ArgListEE16get_next_sectionEv
+8.3% +32 +10% +32 .text._ZN22__llvm_libc_18_0_0_git16get_error_stringEiNS_3cpp4spanIcEE
+9.5% +32 +12% +32 .text._ZN22__llvm_libc_18_0_0_git24report_assertion_failureEPKcS1_jS1_
+2.5% +32 +3.7% +42 .text._ZN22__llvm_libc_18_0_0_git8internal12eisel_lemireIeEENS_3cpp8optionalINS0_13ExpandedFloatIT_EEEES6_NS0_14RoundDirectionE
+2.4% +32 +3.0% +36 .text._ZN22__llvm_libc_18_0_0_git8internal19binary_exp_to_floatIeEENS0_18FloatConvertReturnIT_EENS0_13ExpandedFloatIS3_EEbNS0_14RoundDirectionE
+1.3% +32 +1.5% +34 .text._ZN22__llvm_libc_18_0_0_git8internal23decimal_string_to_floatIeEENS_14StrToNumResultINS0_13ExpandedFloatIT_EEEEPKccNS0_14RoundDirectionE
+5.1% +32 +6.5% +32 .text.fscanf
+10.0% +32 +9.4% +18 .text.printf
+5.0% +32 +6.3% +32 .text.scanf
+15% +32 +33% +29 .text.strtod
+0.2% +28 [ = ] 0 .group
+1.7% +28 +1.8% +28 .text._ZN22__llvm_libc_18_0_0_git10scanf_core11convert_intEPNS0_6ReaderERKNS0_13FormatSectionE
+15% +28 +46% +29 .text.atof
+11% +28 +22% +28 .text.vsnprintf
+12% +28 +27% +28 .text.vsprintf
+6.3% +25 +9.2% +25 .text.snprintf
+6.5% +25 +9.8% +25 .text.sprintf
+15% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git10scanf_core10scanf_mainEPNS0_6ReaderEPKcRNS_8internal7ArgListE
+3.6% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git10scanf_core13convert_floatEPNS0_6ReaderERKNS0_13FormatSectionE
+18% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git10scanf_core23write_float_with_lengthEPcRKNS0_13FormatSectionE
+21% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git10scanf_core6ParserINS_8internal7ArgListEE16get_next_sectionEv
+8.6% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core11convert_intEPNS0_6WriterERKNS0_13FormatSectionE
+3.4% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core21convert_float_hex_expEPNS0_6WriterERKNS0_13FormatSectionE
+3.5% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core27convert_float_decimal_typedIdTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
+3.9% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core27convert_float_decimal_typedIeTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
+5.4% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git11printf_core6ParserINS_8internal7ArgListEE16get_next_sectionEv
+18% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git16get_error_stringEiNS_3cpp4spanIcEE
+13% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git24report_assertion_failureEPKcS1_jS1_
+21% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal18build_error_stringEiNS_3cpp4spanIcEE
+18% +24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git8internal19build_signal_stringEiNS_3cpp4spanIcEE
+13% +24 [ = ] 0 .rela.text._ZNK22__llvm_libc_18_0_0_git6Thread8get_nameERNS_3cpp12StringStreamE
+15% +24 [ = ] 0 .rela.text.fstat
+8.6% +24 [ = ] 0 .rela.text.getcwd
+18% +24 [ = ] 0 .rela.text.lstat
+18% +24 [ = ] 0 .rela.text.stat
+15% +24 [ = ] 0 .rela.text.strtold
+18% +24 [ = ] 0 .rela.text.tcgetattr
+11% +20 +40% +20 .text.pthread_getname_np
+5.9% +19 +9.8% +19 .text.clock
+7.3% +19 +14% +19 .text.gettimeofday
+8.8% +19 +22% +19 .text.time
+4.9% +18 +7.5% +18 .text.sscanf
+0.6% +16 +3.2% +87 .text._ZN22__llvm_libc_18_0_0_git10scanf_core13convert_floatEPNS0_6ReaderERKNS0_13FormatSectionE
+5.3% +16 +11% +18 .text.fprintf
+4.5% +16 +11% +24 .text.getcwd
+1.9% +16 +1.7% +12 .text.hsearch
+7.1% +16 +29% +25 .text.strtoimax
+7.1% +16 +29% +25 .text.strtol
+7.1% +16 +29% +25 .text.strtoll
+7.1% +16 +29% +25 .text.strtoul
+7.1% +16 +29% +25 .text.strtoull
+7.1% +16 +29% +25 .text.strtoumax
+9.1% +16 +73% +24 .text.vfprintf
+8.3% +16 +49% +24 .text.vprintf
+6.8% +15 +16% +15 .text.raise
+1.2% +8 [ = ] 0 .rodata.cst4
+3.8% +8 +9.6% +8 .text.tcgetsid
+2.8% +8 +5.0% +8 .text.tcsetattr
+2.4% +5 +6.2% +5 .text.fgetc_unlocked
+2.4% +5 +6.2% +5 .text.getc_unlocked
+2.3% +5 +5.5% +5 .text.getchar_unlocked
+0.2% +4 +0.2% +4 .text._ZN22__llvm_libc_18_0_0_git11printf_core28convert_float_dec_auto_typedIdTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
[ = ] 0 +19% +64 .text._ZN22__llvm_libc_18_0_0_git10scanf_core10scanf_mainEPNS0_6ReaderEPKcRNS_8internal7ArgListE
[ = ] 0 +14% +10 .text._ZN22__llvm_libc_18_0_0_git8internal4getcEPv
[ = ] 0 +9.9% +7 .text.qsort
[ = ] 0 +10% +7 .text.qsort_r
-0.5% -6 -0.5% -6 .text._ZN22__llvm_libc_18_0_0_git8internal9quicksortERKNS0_5ArrayE
-0.0% -12 [ = ] 0 .comment
-2.7% -16 +10% +48 .text._ZN22__llvm_libc_18_0_0_git11printf_core11printf_mainEPNS0_6WriterEPKcRNS_8internal7ArgListE
-17.6% -24 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git16get_error_stringEi
-1.4% -32 -1.9% -41 .text._ZN22__llvm_libc_18_0_0_git11printf_core27convert_float_dec_exp_typedIdTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
-17.0% -36 +35% +29 .text.strtold
-13.3% -40 +14% +24 .text.tcgetattr
-26.1% -48 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git17get_signal_stringEi
-30.0% -48 [ = ] 0 .rela.text._ZN22__llvm_libc_18_0_0_git17get_signal_stringEiNS_3cpp4spanIcEE
-12.0% -48 +6.2% +16 .text._ZN22__llvm_libc_18_0_0_git8internal18build_error_stringEiNS_3cpp4spanIcEE
-8.3% -48 +3.6% +16 .text._ZN22__llvm_libc_18_0_0_git8internal19build_signal_stringEiNS_3cpp4spanIcEE
-2.8% -64 -2.6% -57 .text._ZN22__llvm_libc_18_0_0_git11printf_core27convert_float_dec_exp_typedIeTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
-9.1% -96 -8.6% -78 .text._ZN22__llvm_libc_18_0_0_git8internal20decimal_exp_to_floatIfEENS0_18FloatConvertReturnIT_EENS0_13ExpandedFloatIS3_EEPKcbNS0_14RoundDirectionE
-37.5% -192 -43.0% -189 .text._ZN22__llvm_libc_18_0_0_git6Thread8set_nameERKNS_3cpp11string_viewE
-23.5% -192 -26.1% -194 .text._ZNK22__llvm_libc_18_0_0_git6Thread8get_nameERNS_3cpp12StringStreamE
-11.8% -304 -11.6% -290 .text._ZN22__llvm_libc_18_0_0_git11printf_core27convert_float_decimal_typedIdTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
-76.0% -304 -92.2% -309 .text._ZN22__llvm_libc_18_0_0_git16get_error_stringEi
-13.6% -320 -14.0% -318 .text._ZN22__llvm_libc_18_0_0_git11printf_core27convert_float_decimal_typedIeTnNS_3cpp9enable_ifIXsr3cppE19is_floating_point_vIT_EEiE4typeELi0EEEiPNS0_6WriterERKNS0_13FormatSectionENS_6fputil6FPBitsIS4_EE
-68.6% -384 -79.7% -389 .text._ZN22__llvm_libc_18_0_0_git17get_signal_stringEi
-75.7% -448 -86.3% -448 .text._ZN22__llvm_libc_18_0_0_git17get_signal_stringEiNS_3cpp4spanIcEE
+0.2% +8.79Ki +0.1% +3.43Ki TOTAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment