Skip to content

Commit

Permalink
perf(*): Update tracing to improve performance of disabled spans (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored Mar 10, 2022
1 parent 99f381c commit 86ea237
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ swc_ecma_loader = {path = "../swc_ecma_loader"}
swc_ecma_parser = {path = "../swc_ecma_parser"}
swc_node_base = {path = "../swc_node_base"}
swc_node_bundler = {path = "../swc_node_bundler"}
tracing = { version = "0.1.31", features = ["release_max_level_info"] }
tracing = { version = "0.1.32" , features = ["release_max_level_info"] }
tracing-chrome = "0.4.0"
tracing-futures = "0.2.5"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ swc_ecmascript = {version = "0.129.0", path = "../swc_ecmascript"}
swc_node_comments = {version = "0.4.0", path = "../swc_node_comments"}
swc_plugin_runner = {version = "0.40.0", path = "../swc_plugin_runner", optional = true}
swc_visit = {version = "0.3.0", path = "../swc_visit"}
tracing = "0.1.31"
tracing = "0.1.32"

[dependencies.napi-derive]
default-features = false
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ swc_ecma_utils = {version = "0.71.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit"}
swc_fast_graph = {version = "0.4.0", path = "../swc_fast_graph/"}
swc_graph_analyzer = {version = "0.4.0", path = "../swc_graph_analyzer/"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
hex = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ swc_trace_macro = {version = "0.1.0", path = "../swc_trace_macro"}
tracing-chrome = "0.4.0"
tracing-futures = "0.2.5"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
tracing = "0.1.31"
tracing = "0.1.32"

[dependencies.path-absolutize]
version = "3.0.11"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ string_cache = "0.8.3"
swc_eq_ignore_macros = {version = "0.1", path = "../swc_eq_ignore_macros"}
swc_visit = {version = "0.3.0", path = "../swc_visit"}
termcolor = {version = "1.0", optional = true}
tracing = "0.1.31"
tracing = "0.1.32"
unicode-width = "0.1.4"
url = "2.2.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ swc_atoms = {version = "0.2", path = "../swc_atoms"}
swc_common = {version = "0.17.3", path = "../swc_common"}
swc_ecma_ast = {version = "0.69.0", path = "../swc_ecma_ast"}
swc_ecma_codegen_macros = {version = "0.6.0", path = "../swc_ecma_codegen_macros"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
swc_common = {version = "0.17.3", path = "../swc_common", features = ["sourcemap"]}
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_loader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ serde = {version = "1", features = ["derive"]}
serde_json = {version = "1.0.64", optional = true}
swc_cached = {version = "0.1.0", optional = true, path = "../swc_cached"}
swc_common = {version = "0.17.0", path = "../swc_common"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_minifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ swc_ecma_transforms_base = {version = "0.66.0", path = "../swc_ecma_transforms_b
swc_ecma_utils = {version = "0.71.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit"}
swc_timer = {version = "0.4.0", path = "../swc_timer"}
tracing = "0.1.31"
tracing = "0.1.32"
unicode-id = "0.3.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ swc_atoms = {version = "0.2.3", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
swc_ecma_ast = {version = "0.69.0", path = "../swc_ecma_ast"}
swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit", optional = true}
tracing = "0.1.31"
tracing = "0.1.32"
typed-arena = "2.0.1"
unicode-id = "0.3"

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ swc_ecma_ast = {version = "0.69.0", path = "../swc_ecma_ast"}
swc_ecma_parser = {version = "0.92.0", path = "../swc_ecma_parser"}
swc_ecma_utils = {version = "0.71.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
swc_ecma_codegen = {version = "0.94.0", path = "../swc_ecma_codegen"}
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_compat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ swc_ecma_transforms_macros = {version = "0.3.0", path = "../swc_ecma_transforms_
swc_ecma_utils = {version = "0.71.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit"}
swc_trace_macro = {version = "0.1.0", path = "../swc_trace_macro"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
serde_json = "1.0.66"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ swc_ecma_parser = {version = "0.92.0", path = "../swc_ecma_parser"}
swc_ecma_transforms_base = {version = "0.66.0", path = "../swc_ecma_transforms_base"}
swc_ecma_utils = {version = "0.71.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
swc_ecma_transforms_compat = {version = "0.78.0", path = "../swc_ecma_transforms_compat"}
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_optimization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ swc_ecma_transforms_base = {version = "0.66.0", path = "../swc_ecma_transforms_b
swc_ecma_transforms_macros = {version = "0.3.0", path = "../swc_ecma_transforms_macros"}
swc_ecma_utils = {version = "0.71.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
swc_ecma_transforms_compat = {version = "0.78.0", path = "../swc_ecma_transforms_compat"}
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ swc_atoms = {version = "0.2.0", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
swc_ecma_ast = {version = "0.69.0", path = "../swc_ecma_ast"}
swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
swc_ecma_parser = {version = "0.92.0", path = "../swc_ecma_parser"}
2 changes: 1 addition & 1 deletion crates/swc_ecma_visit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ swc_atoms = {version = "0.2", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
swc_ecma_ast = {version = "0.69.0", path = "../swc_ecma_ast"}
swc_visit = {version = "0.3.0", path = "../swc_visit"}
tracing = "0.1.31"
tracing = "0.1.32"
2 changes: 1 addition & 1 deletion crates/swc_graph_analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ahash = "0.7.6"
auto_impl = "0.5.0"
petgraph = "0.5.0"
swc_fast_graph = {version = "0.4.0", path = "../swc_fast_graph/"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
testing = {version = "0.18.0", path = "../testing"}
2 changes: 1 addition & 1 deletion crates/swc_node_bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ swc_ecma_transforms = {path = "../swc_ecma_transforms"}
swc_ecma_utils = {path = "../swc_ecma_utils"}
swc_ecma_visit = {path = "../swc_ecma_visit"}
swc_node_base = {path = "../swc_node_base"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
pretty_assertions = "0.7.2"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_plugin_runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ serde = {version = "1.0.126", features = ["derive"]}
serde_json = "1.0.64"
swc_common = {version = "0.17.0", path = "../swc_common", features = ["plugin-rt", "concurrent"]}
swc_ecma_ast = {version = "0.69.0", path = "../swc_ecma_ast", features = ["rkyv-impl"]}
tracing = "0.1.31"
tracing = "0.1.32"
wasmer = "2.2.0"
wasmer-cache = "2.2.0"
wasmer-wasi = "2.2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_timer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ version = "0.4.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
testing = {version = "0.18.0", path = "../testing"}
2 changes: 1 addition & 1 deletion crates/swc_webpack_ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ swc_ecma_visit = {version = "0.55.0", path = "../swc_ecma_visit"}
swc_estree_ast = {version = "0.7.0", path = "../swc_estree_ast"}
swc_estree_compat = {version = "0.65.0", path = "../swc_estree_compat"}
swc_timer = {version = "0.4.0", path = "../swc_timer"}
tracing = "0.1.31"
tracing = "0.1.32"

[dev-dependencies]
swc_ecma_transforms_testing = {version = "0.68.0", path = "../swc_ecma_transforms_testing"}
Expand Down
2 changes: 1 addition & 1 deletion crates/testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ regex = "1"
serde_json = "1.0.71"
swc_common = {version = "0.17.0", path = "../swc_common", features = ["tty-emitter"]}
testing_macros = {version = "0.2.0", path = "../testing_macros"}
tracing = "0.1.31"
tracing = "0.1.32"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion crates/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ swc = {path = "../swc"}
swc_common = {path = "../swc_common"}
swc_ecma_lints = {path = "../swc_ecma_lints", features = ["non_critical_lints"]}
swc_ecmascript = {path = "../swc_ecmascript"}
tracing = {version = "0.1.31", features = ["release_max_level_off"]}
tracing = {version = "0.1.32", features = ["release_max_level_off"]}
wasm-bindgen = {version = "0.2", features = ["serde-serialize"]}

1 comment on commit 86ea237

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 86ea237 Previous: 9e4dea6 Ratio
full_es2015 145820941 ns/iter (± 9414014) 183564414 ns/iter (± 18751614) 0.79
full_es2016 144558255 ns/iter (± 4340801) 184684915 ns/iter (± 15018714) 0.78
full_es2017 144455565 ns/iter (± 5521594) 182822909 ns/iter (± 9552524) 0.79
full_es2018 142809953 ns/iter (± 4138715) 180961641 ns/iter (± 12846609) 0.79
full_es2019 142144909 ns/iter (± 5442054) 178913211 ns/iter (± 9430000) 0.79
full_es2020 138859705 ns/iter (± 3643845) 167106148 ns/iter (± 15371997) 0.83
full_es3 196968493 ns/iter (± 4562825) 238120442 ns/iter (± 9445430) 0.83
full_es5 186746977 ns/iter (± 6573783) 227142029 ns/iter (± 11705416) 0.82
parser 546791 ns/iter (± 15887) 657074 ns/iter (± 76604) 0.83

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.