Skip to content

Commit 1258bc3

Browse files
Alexander Kampmannfacebook-github-bot
authored andcommitted
make async available in criterion
Summary: This adds the `async_tokio` feature to criterion, which enables usage of `async` in benchmarks. I am also converting the rcx benchmark to use it, and adding a new benchmark which only updates the cache, without using it. Reviewed By: dtolnay Differential Revision: D67791849 fbshipit-source-id: 5639f21ec8b4f9bb10767757fe1b65ba34645aa5
1 parent 722b7e9 commit 1258bc3

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

hphp/hack/src/Cargo.lock

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hphp/hack/src/parser/cargo/bench/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ aast_parser = { version = "0.0.0", path = "../aast_parser" }
1616
ast_and_decl_parser = { version = "0.0.0", path = "../ast_and_decl_parser" }
1717
bumpalo = { version = "3.14.0", features = ["allocator_api", "collections"] }
1818
clap = { version = "4.5.20", features = ["derive", "env", "string", "unicode", "wrap_help"] }
19-
criterion = { version = "0.5.1", features = ["csv_output"] }
19+
criterion = { version = "0.5.1", features = ["async_tokio", "csv_output"] }
2020
cst_and_decl_parser = { version = "0.0.0", path = "../../api/cargo/cst_and_decl_parser" }
2121
direct_decl_parser = { version = "0.0.0", path = "../../api/cargo/direct_decl_parser" }
2222
parser_core_types = { version = "0.0.0", path = "../core_types" }

0 commit comments

Comments
 (0)