perf: eliminate double JSON serialization in cache key hot path by ppraneth · Pull Request #7345 · tensorzero/tensorzero · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 156 additions & 1 deletion crates/Cargo.lock

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

1 change: 1 addition & 0 deletions crates/Cargo.toml
5 changes: 5 additions & 0 deletions crates/tensorzero-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ name = "e2e"
path = "tests/e2e/tests.rs"
required-features = ["e2e_tests"]

[[bench]]
name = "cache_key"
harness = false

[lints]
workspace = true

Expand Down Expand Up @@ -158,6 +162,7 @@ rustls = { workspace = true }
serde_with = { workspace = true }

[dev-dependencies]
criterion = { workspace = true }
googletest = { workspace = true }
googletest-matchers = { path = "../googletest-matchers" }
tempfile = { workspace = true }
Expand Down
89 changes: 89 additions & 0 deletions crates/tensorzero-core/benches/cache_key.rs
Loading
Loading