|
1 | 1 | window.BENCHMARK_DATA = { |
2 | | - "lastUpdate": 1783133660327, |
| 2 | + "lastUpdate": 1783138464180, |
3 | 3 | "repoUrl": "https://github.com/PHPantom-dev/phpantom_lsp", |
4 | 4 | "entries": { |
5 | 5 | "PHPantom Benchmarks": [ |
@@ -64322,6 +64322,198 @@ window.BENCHMARK_DATA = { |
64322 | 64322 | "unit": "ms" |
64323 | 64323 | } |
64324 | 64324 | ] |
| 64325 | + }, |
| 64326 | + { |
| 64327 | + "commit": { |
| 64328 | + "author": { |
| 64329 | + "email": "cdwhite3@pm.me", |
| 64330 | + "name": "Caleb White", |
| 64331 | + "username": "calebdw" |
| 64332 | + }, |
| 64333 | + "committer": { |
| 64334 | + "email": "anders@jenbo.dk", |
| 64335 | + "name": "Anders Jenbo", |
| 64336 | + "username": "AJenbo" |
| 64337 | + }, |
| 64338 | + "distinct": true, |
| 64339 | + "id": "31cc5e22506b38502c6285c99968bf55dcfdcfad", |
| 64340 | + "message": "fix(diagnostics): resolve literal types for argument type checking\n\nFixes #180 — string/int/float literal expressions passed as arguments\nare now narrowed to their precise literal type (e.g. `'desc'` becomes\n`PhpType::Literal(\"'desc'\")`) instead of the widened base type\n(`string`). This allows literal values to correctly match PHPDoc\nliteral-union parameter types like `'asc'|'desc'`.\n\nAlso fixes `is_string_subtype()` and `is_int_subtype()` to handle\n`PhpType::Union` — a union of string/int literals (e.g.\n`'asc'|'desc'`) is now recognised as a string/int subtype, allowing\nPHPDoc `@param` annotations with literal unions to properly override\nnative scalar type hints.\n\nThe narrowing is applied only in the diagnostic argument-collection\npath (not in general variable resolution) to avoid changing inferred\ntypes for array shapes and list element tracking.\n\nIncludes 8 new integration tests covering correct and incorrect\nstring, integer, and float literals against literal-union parameters,\nplus precise numeric-string checking (`'42'` passes, `'hello'` is\nflagged).\n\nCloses #180\n\nSigned-off-by: Anders Jenbo <anders@jenbo.dk>", |
| 64341 | + "timestamp": "2026-07-04T06:04:59+02:00", |
| 64342 | + "tree_id": "404d4ae1f0957556ac34ea0df1d4bb95a479c855", |
| 64343 | + "url": "https://github.com/PHPantom-dev/phpantom_lsp/commit/31cc5e22506b38502c6285c99968bf55dcfdcfad" |
| 64344 | + }, |
| 64345 | + "date": 1783138463291, |
| 64346 | + "tool": "customSmallerIsBetter", |
| 64347 | + "benches": [ |
| 64348 | + { |
| 64349 | + "name": "cold_start_completion", |
| 64350 | + "value": 5.581, |
| 64351 | + "range": "± 0.057", |
| 64352 | + "unit": "ms" |
| 64353 | + }, |
| 64354 | + { |
| 64355 | + "name": "completion_simple_class", |
| 64356 | + "value": 0.042, |
| 64357 | + "range": "± 0.004", |
| 64358 | + "unit": "ms" |
| 64359 | + }, |
| 64360 | + { |
| 64361 | + "name": "completion_inheritance_depth/depth_5", |
| 64362 | + "value": 0.108, |
| 64363 | + "range": "± 0.007", |
| 64364 | + "unit": "ms" |
| 64365 | + }, |
| 64366 | + { |
| 64367 | + "name": "completion_inheritance_depth/depth_10", |
| 64368 | + "value": 0.155, |
| 64369 | + "range": "± 0.006", |
| 64370 | + "unit": "ms" |
| 64371 | + }, |
| 64372 | + { |
| 64373 | + "name": "completion_inheritance_depth/depth_20", |
| 64374 | + "value": 0.229, |
| 64375 | + "range": "± 0.006", |
| 64376 | + "unit": "ms" |
| 64377 | + }, |
| 64378 | + { |
| 64379 | + "name": "completion_classmap_size/100_classes", |
| 64380 | + "value": 0.243, |
| 64381 | + "range": "± 0.007", |
| 64382 | + "unit": "ms" |
| 64383 | + }, |
| 64384 | + { |
| 64385 | + "name": "completion_classmap_size/500_classes", |
| 64386 | + "value": 0.921, |
| 64387 | + "range": "± 0.009", |
| 64388 | + "unit": "ms" |
| 64389 | + }, |
| 64390 | + { |
| 64391 | + "name": "completion_classmap_size/1000_classes", |
| 64392 | + "value": 1.836, |
| 64393 | + "range": "± 0.035", |
| 64394 | + "unit": "ms" |
| 64395 | + }, |
| 64396 | + { |
| 64397 | + "name": "completion_generics_and_mixins", |
| 64398 | + "value": 0.118, |
| 64399 | + "range": "± 0.009", |
| 64400 | + "unit": "ms" |
| 64401 | + }, |
| 64402 | + { |
| 64403 | + "name": "completion_with_narrowing", |
| 64404 | + "value": 0.051, |
| 64405 | + "range": "± 0.004", |
| 64406 | + "unit": "ms" |
| 64407 | + }, |
| 64408 | + { |
| 64409 | + "name": "completion_5_method_chain", |
| 64410 | + "value": 0.05, |
| 64411 | + "range": "± 0.004", |
| 64412 | + "unit": "ms" |
| 64413 | + }, |
| 64414 | + { |
| 64415 | + "name": "completion_cross_file_type_hint", |
| 64416 | + "value": 0.065, |
| 64417 | + "range": "± 0.007", |
| 64418 | + "unit": "ms" |
| 64419 | + }, |
| 64420 | + { |
| 64421 | + "name": "completion_carbon_class", |
| 64422 | + "value": 3.899, |
| 64423 | + "range": "± 0.029", |
| 64424 | + "unit": "ms" |
| 64425 | + }, |
| 64426 | + { |
| 64427 | + "name": "completion_yii_deep_hierarchy", |
| 64428 | + "value": 0.23, |
| 64429 | + "range": "± 0.003", |
| 64430 | + "unit": "ms" |
| 64431 | + }, |
| 64432 | + { |
| 64433 | + "name": "completion_large_file", |
| 64434 | + "value": 0.265, |
| 64435 | + "range": "± 0.013", |
| 64436 | + "unit": "ms" |
| 64437 | + }, |
| 64438 | + { |
| 64439 | + "name": "completion_short_file", |
| 64440 | + "value": 0.072, |
| 64441 | + "range": "± 0.007", |
| 64442 | + "unit": "ms" |
| 64443 | + }, |
| 64444 | + { |
| 64445 | + "name": "variable_completion/short", |
| 64446 | + "value": 0.049, |
| 64447 | + "range": "± 0.003", |
| 64448 | + "unit": "ms" |
| 64449 | + }, |
| 64450 | + { |
| 64451 | + "name": "variable_completion/long", |
| 64452 | + "value": 0.121, |
| 64453 | + "range": "± 0.004", |
| 64454 | + "unit": "ms" |
| 64455 | + }, |
| 64456 | + { |
| 64457 | + "name": "hover_method_call", |
| 64458 | + "value": 0.09, |
| 64459 | + "range": "± 0.01", |
| 64460 | + "unit": "ms" |
| 64461 | + }, |
| 64462 | + { |
| 64463 | + "name": "goto_definition_method", |
| 64464 | + "value": 0.072, |
| 64465 | + "range": "± 0.007", |
| 64466 | + "unit": "ms" |
| 64467 | + }, |
| 64468 | + { |
| 64469 | + "name": "update_ast_parse_time/100_lines", |
| 64470 | + "value": 0.191, |
| 64471 | + "range": "± 0.001", |
| 64472 | + "unit": "ms" |
| 64473 | + }, |
| 64474 | + { |
| 64475 | + "name": "update_ast_parse_time/500_lines", |
| 64476 | + "value": 1.039, |
| 64477 | + "range": "± 0.01", |
| 64478 | + "unit": "ms" |
| 64479 | + }, |
| 64480 | + { |
| 64481 | + "name": "update_ast_parse_time/2000_lines", |
| 64482 | + "value": 5.412, |
| 64483 | + "range": "± 0.032", |
| 64484 | + "unit": "ms" |
| 64485 | + }, |
| 64486 | + { |
| 64487 | + "name": "reparse_500_line_file", |
| 64488 | + "value": 1.047, |
| 64489 | + "range": "± 0.013", |
| 64490 | + "unit": "ms" |
| 64491 | + }, |
| 64492 | + { |
| 64493 | + "name": "diagnostics/fixture/lots_of_new_generic_objects", |
| 64494 | + "value": 0.035, |
| 64495 | + "range": "± 0.001", |
| 64496 | + "unit": "ms" |
| 64497 | + }, |
| 64498 | + { |
| 64499 | + "name": "diagnostics/fixture/lots_of_new_objects", |
| 64500 | + "value": 0.033, |
| 64501 | + "range": "± 0", |
| 64502 | + "unit": "ms" |
| 64503 | + }, |
| 64504 | + { |
| 64505 | + "name": "diagnostics/fixture/lots_of_missing_methods", |
| 64506 | + "value": 46.054, |
| 64507 | + "range": "± 0.114", |
| 64508 | + "unit": "ms" |
| 64509 | + }, |
| 64510 | + { |
| 64511 | + "name": "diagnostics/fixture/method_chain", |
| 64512 | + "value": 1.094, |
| 64513 | + "range": "± 0.009", |
| 64514 | + "unit": "ms" |
| 64515 | + } |
| 64516 | + ] |
64325 | 64517 | } |
64326 | 64518 | ] |
64327 | 64519 | } |
|
0 commit comments