Skip to content

Instantly share code, notes, and snippets.

@rylev
Created January 22, 2021 09:42
Show Gist options
  • Save rylev/498bd19539dcff01c7be08e0ac7459f7 to your computer and use it in GitHub Desktop.
Save rylev/498bd19539dcff01c7be08e0ac7459f7 to your computer and use it in GitHub Desktop.
Timings for cargo doc build of windows-rs
+-------------------------------------------------+-----------+-----------------+----------+------------+
| Item | Self time | % of total time | Time | Item count |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| <unknown> | 653.09s | 36.998 | 1336.82s | 24718096 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| resolve_crate | 540.19s | 30.602 | 540.19s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| render_html | 384.93s | 21.807 | 386.88s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| get_blanket_impls | 66.06s | 3.742 | 76.22s | 45080 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| expand_crate | 30.12s | 1.706 | 30.13s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| hir_lowering | 16.02s | 0.908 | 16.02s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| build_local_trait_impl | 14.40s | 0.816 | 14.55s | 11654129 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| free_global_ctxt | 14.29s | 0.810 | 14.29s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| get_auto_trait_impls | 10.39s | 0.589 | 11.71s | 45080 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| build_hir_map | 6.12s | 0.347 | 6.12s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| collect-trait-impls | 4.18s | 0.237 | 108.39s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| clean_crate | 4.14s | 0.235 | 6.00s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| crate_lints | 2.95s | 0.167 | 18.40s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| early_lint_checks | 2.07s | 0.117 | 2.07s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| check-private-items-doc-tests | 2.07s | 0.117 | 2.07s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| strip-hidden | 1.93s | 0.109 | 1.93s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| strip-private | 1.69s | 0.096 | 1.69s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| AST_validation | 1.69s | 0.096 | 1.69s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| collect-intra-doc-links | 1.63s | 0.092 | 1.66s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| complete_gated_feature_checking | 1.33s | 0.075 | 1.33s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| unindent-comments | 975.07ms | 0.055 | 975.07ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| check-non-autolinks | 737.37ms | 0.042 | 737.37ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| check-invalid-html-tags | 729.87ms | 0.041 | 729.87ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| propagate-doc-cfg | 698.38ms | 0.040 | 698.38ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| check-code-block-syntax | 697.53ms | 0.040 | 697.53ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| collect_synthetic_impls | 435.03ms | 0.025 | 88.39s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| build_extern_trait_impl | 416.73ms | 0.024 | 912.66ms | 15232 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| run_global_ctxt | 289.98ms | 0.016 | 772.36s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| collect_items_for_trait_impls | 242.13ms | 0.014 | 242.13ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| setup_global_ctxt | 200.32ms | 0.011 | 200.32ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_item_attrs | 99.54ms | 0.006 | 99.54ms | 40490 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| get_auto_trait_and_blanket_synthetic_impls | 90.64ms | 0.005 | 87.95s | 45051 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_item_children | 38.45ms | 0.002 | 38.45ms | 7425 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_associated_item_def_ids | 31.80ms | 0.002 | 31.80ms | 11891 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_explicit_predicates_of | 31.32ms | 0.002 | 31.32ms | 28137 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_impl_trait_ref | 19.19ms | 0.001 | 32.34ms | 15391 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_fn_sig | 18.52ms | 0.001 | 18.54ms | 16002 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| build_primitive_trait_impl | 17.77ms | 0.001 | 117.94ms | 29 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_generics_of | 15.30ms | 0.001 | 15.30ms | 28225 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_register_crate | 13.39ms | 0.001 | 42.44ms | 37 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_fn_arg_names | 10.68ms | 0.001 | 10.68ms | 16001 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_type_of | 10.23ms | 0.001 | 11.00ms | 20528 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_def_span | 7.60ms | 0.000 | 7.60ms | 33662 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_adt_def | 7.35ms | 0.000 | 13.62ms | 1819 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| parse_crate | 6.91ms | 0.000 | 6.91ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_associated_item | 5.88ms | 0.000 | 5.88ms | 20345 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_visibility | 5.16ms | 0.000 | 5.16ms | 39422 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_impl_parent | 3.50ms | 0.000 | 3.50ms | 7006 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_is_const_fn_raw | 3.31ms | 0.000 | 3.31ms | 15732 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_impl_polarity | 3.13ms | 0.000 | 3.13ms | 11717 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_mir_for_ctfe | 3.00ms | 0.000 | 3.00ms | 151 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_asyncness | 2.62ms | 0.000 | 2.62ms | 15731 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_lookup_stability | 2.34ms | 0.000 | 2.34ms | 6029 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_implementations_of_trait | 1.80ms | 0.000 | 1.80ms | 7030 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| drop_compiler | 1.74ms | 0.000 | 1.74ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_load_macro | 1.72ms | 0.000 | 1.72ms | 24 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_def_kind | 1.62ms | 0.000 | 1.62ms | 7807 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| item_types_checking | 1.55ms | 0.000 | 625.97s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_all_trait_implementations | 1.28ms | 0.000 | 1.28ms | 37 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_lookup_const_stability | 922.60µs | 0.000 | 922.60µs | 5030 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| check_mod_attrs | 725.60µs | 0.000 | 2.06s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_inferred_outlives_of | 375.70µs | 0.000 | 375.70µs | 1521 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_explicit_item_bounds | 315.30µs | 0.000 | 315.30µs | 85 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| module_lints | 314.30µs | 0.000 | 375.60µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_lookup_deprecation_entry | 291.80µs | 0.000 | 291.80µs | 1535 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| prepare_outputs | 197.60µs | 0.000 | 197.60µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_trait_def | 197.40µs | 0.000 | 197.40µs | 301 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_inherent_impls | 155.80µs | 0.000 | 155.80µs | 234 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_rendered_const | 146.70µs | 0.000 | 146.70µs | 421 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| macro_expand_crate | 139.40µs | 0.000 | 30.13s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| configure_and_expand | 134.00µs | 0.000 | 573.34s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_expn_that_defined | 79.80µs | 0.000 | 79.80µs | 37 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_super_predicates_of | 79.60µs | 0.000 | 79.60µs | 24 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| pre_AST_expansion_lint_checks | 64.60µs | 0.000 | 64.60µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_trait_of_item | 61.90µs | 0.000 | 61.90µs | 151 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_variances_of | 60.70µs | 0.000 | 60.70µs | 20 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| create_global_ctxt | 52.30µs | 0.000 | 200.37ms | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_adt_destructor | 48.10µs | 0.000 | 75.00µs | 7 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_static_mutability | 35.10µs | 0.000 | 35.10µs | 150 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_is_ctfe_mir_available | 25.90µs | 0.000 | 25.90µs | 151 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| crate_injection | 24.70µs | 0.000 | 24.70µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| load_extern_crates | 19.10µs | 0.000 | 19.10µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_defined_lang_items | 16.90µs | 0.000 | 16.90µs | 37 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_missing_extern_crate_item | 5.70µs | 0.000 | 5.70µs | 37 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| maybe_create_a_macro_crate | 5.30µs | 0.000 | 5.30µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| maybe_building_test_harness | 4.80µs | 0.000 | 4.80µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_crate_name | 4.40µs | 0.000 | 4.40µs | 37 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| missing_docs | 2.90µs | 0.000 | 18.40s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| plugin_loading | 2.90µs | 0.000 | 2.90µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| attributes_injection | 1.70µs | 0.000 | 1.70µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| recursion_limit | 1.60µs | 0.000 | 1.60µs | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| check_unused_macros | 600.00ns | 0.000 | 600.00ns | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_original_crate_name | 600.00ns | 0.000 | 600.00ns | 2 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_extern_crate | 600.00ns | 0.000 | 600.00ns | 4 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| metadata_decode_entry_is_compiler_builtins | 100.00ns | 0.000 | 100.00ns | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| plugin_registration | 100.00ns | 0.000 | 100.00ns | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
Total cpu time: 1765.1959983s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment