perf(biome_package): updated incorrect generic passed to deserialize_… (#6760)
Some checks are pending
Benchmarks / Bench (push) Waiting to run
CI on main / Format Rust Files (push) Waiting to run
CI on main / Lint Rust Files (push) Waiting to run
Release / version (push) Blocked by required conditions
CI on main / Check Dependencies (push) Waiting to run
CI on main / Test (push) Waiting to run
CI on main / Test262 Coverage (push) Waiting to run
Release / Release (push) Waiting to run
Release / Package darwin-x64 (push) Blocked by required conditions
Release / Package darwin-arm64 (push) Blocked by required conditions
Release / Package linux-arm64-musl (push) Blocked by required conditions
Release / Package linux-x64-musl (push) Blocked by required conditions
Release / Package win32-arm64 (push) Blocked by required conditions
Release / Package win32-x64 (push) Blocked by required conditions
Release / Package linux-arm64 (push) Blocked by required conditions
Release / Package linux-x64 (push) Blocked by required conditions
Release / Build WASM (push) Blocked by required conditions
Release / Publish JS API (push) Blocked by required conditions
Repository dispatch on main / Repository dispatch (push) Blocked by required conditions
Release / Package JavaScript APIs (push) Blocked by required conditions
Release / Publish CLI (push) Blocked by required conditions
Repository dispatch on main / Build @biomejs/wasm-web (push) Waiting to run

This commit is contained in:
vladimir ivanov 2025-07-07 19:52:15 +01:00 committed by GitHub
parent d12b26f608
commit c8d0e013fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
"@biomejs/biome": patch
---
Resolved [#6745](hhttps://github.com/biomejs/biome/issues/6745): Updated perf test for `tsconfig.json` parsing to use the correct generic type.

View file

@ -1,6 +1,6 @@
use biome_deserialize::json::deserialize_from_json_str;
use biome_json_parser::JsonParserOptions;
use biome_package::PackageJson;
use biome_package::TsConfigJson;
use criterion::{BenchmarkId, Criterion, Throughput, black_box, criterion_group, criterion_main};
#[cfg(target_os = "windows")]
@ -28,7 +28,7 @@ fn bench_tsconfig(criterion: &mut Criterion) {
&code,
|b, _| {
b.iter(|| {
black_box(deserialize_from_json_str::<PackageJson>(
black_box(deserialize_from_json_str::<TsConfigJson>(
code,
JsonParserOptions::default(),
"tsconfig.json",