Files
2026Technology-Competition/tests/measure/results/a3-plugin-results.json
T
范智鹏 3280836124 data: A3 提效对比实验数据(23 样例 + 人工基线 + 插件实测,整体提速约 266 倍)
- data/efficiency-samples/ 23 个多语言样例 + data/manual-review-tool.html 人工审核工具
- tests/measure/measure-plugin-samples.mjs 四语言插件侧测量脚本
- tests/measure/compare-a3.mjs 聚合对比 + results(插件实测/人工基线/comparison)
- performance-comparison.md 填实基线对比与结论;README 效果总结由占位改为真实数据
2026-08-27 22:54:07 +08:00

429 lines
11 KiB
JSON

{
"tool": "code-reviewer",
"experiment": "A3",
"measureDate": "2026-08-27T14:11:41.819Z",
"rows": [
{
"lang": "js",
"files": 8,
"totalMs": 95.12519999999999,
"diagnostics": 120,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
],
"perFile": [
{
"file": "sample-01.js",
"ms": 76.3813,
"diagnostics": 15,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
]
},
{
"file": "sample-02.js",
"ms": 3.9935,
"diagnostics": 15,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
]
},
{
"file": "sample-03.js",
"ms": 3.1006,
"diagnostics": 15,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
]
},
{
"file": "sample-04.js",
"ms": 3.3445,
"diagnostics": 15,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
]
},
{
"file": "sample-05.js",
"ms": 2.5643,
"diagnostics": 15,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
]
},
{
"file": "sample-06.js",
"ms": 1.8361,
"diagnostics": 15,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
]
},
{
"file": "sample-07.js",
"ms": 1.8139,
"diagnostics": 15,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
]
},
{
"file": "sample-08.js",
"ms": 2.091,
"diagnostics": 15,
"rules": [
"eqeqeq",
"no-debugger",
"no-empty",
"no-eval",
"no-self-assign",
"no-self-compare",
"no-shadow",
"no-undef",
"no-unused-vars",
"no-var"
]
}
]
},
{
"lang": "css",
"files": 5,
"totalMs": 129.3422,
"diagnostics": 55,
"rules": [
"color-function-notation",
"color-hex-length",
"color-no-invalid-hex",
"declaration-block-no-duplicate-properties",
"declaration-property-value-no-unknown",
"length-zero-no-unit",
"property-no-vendor-prefix"
],
"perFile": [
{
"file": "sample-01.css",
"ms": 117.6596,
"diagnostics": 11,
"rules": [
"color-function-notation",
"color-hex-length",
"color-no-invalid-hex",
"declaration-block-no-duplicate-properties",
"declaration-property-value-no-unknown",
"length-zero-no-unit",
"property-no-vendor-prefix"
]
},
{
"file": "sample-02.css",
"ms": 3.8669,
"diagnostics": 11,
"rules": [
"color-function-notation",
"color-hex-length",
"color-no-invalid-hex",
"declaration-block-no-duplicate-properties",
"declaration-property-value-no-unknown",
"length-zero-no-unit",
"property-no-vendor-prefix"
]
},
{
"file": "sample-03.css",
"ms": 2.916,
"diagnostics": 11,
"rules": [
"color-function-notation",
"color-hex-length",
"color-no-invalid-hex",
"declaration-block-no-duplicate-properties",
"declaration-property-value-no-unknown",
"length-zero-no-unit",
"property-no-vendor-prefix"
]
},
{
"file": "sample-04.css",
"ms": 2.3296,
"diagnostics": 11,
"rules": [
"color-function-notation",
"color-hex-length",
"color-no-invalid-hex",
"declaration-block-no-duplicate-properties",
"declaration-property-value-no-unknown",
"length-zero-no-unit",
"property-no-vendor-prefix"
]
},
{
"file": "sample-05.css",
"ms": 2.5701,
"diagnostics": 11,
"rules": [
"color-function-notation",
"color-hex-length",
"color-no-invalid-hex",
"declaration-block-no-duplicate-properties",
"declaration-property-value-no-unknown",
"length-zero-no-unit",
"property-no-vendor-prefix"
]
}
]
},
{
"lang": "java",
"files": 6,
"totalMs": 6610.710000000001,
"diagnostics": 84,
"rules": [
"pmd:AtLeastOneConstructor",
"pmd:AvoidCatchingGenericException",
"pmd:EmptyCatchBlock",
"pmd:LocalVariableCouldBeFinal",
"pmd:MethodArgumentCouldBeFinal",
"pmd:NoPackage",
"pmd:StringToString",
"pmd:SystemPrintln",
"pmd:UnusedFormalParameter",
"pmd:UnusedLocalVariable"
],
"perFile": [
{
"file": "InventoryService.java",
"ms": 1183.0781,
"diagnostics": 14,
"rules": [
"pmd:AtLeastOneConstructor",
"pmd:AvoidCatchingGenericException",
"pmd:EmptyCatchBlock",
"pmd:LocalVariableCouldBeFinal",
"pmd:MethodArgumentCouldBeFinal",
"pmd:NoPackage",
"pmd:StringToString",
"pmd:SystemPrintln",
"pmd:UnusedFormalParameter",
"pmd:UnusedLocalVariable"
]
},
{
"file": "NotifyService.java",
"ms": 1088.2139,
"diagnostics": 14,
"rules": [
"pmd:AtLeastOneConstructor",
"pmd:AvoidCatchingGenericException",
"pmd:EmptyCatchBlock",
"pmd:LocalVariableCouldBeFinal",
"pmd:MethodArgumentCouldBeFinal",
"pmd:NoPackage",
"pmd:StringToString",
"pmd:SystemPrintln",
"pmd:UnusedFormalParameter",
"pmd:UnusedLocalVariable"
]
},
{
"file": "OrderService.java",
"ms": 1069.5628,
"diagnostics": 14,
"rules": [
"pmd:AtLeastOneConstructor",
"pmd:AvoidCatchingGenericException",
"pmd:EmptyCatchBlock",
"pmd:LocalVariableCouldBeFinal",
"pmd:MethodArgumentCouldBeFinal",
"pmd:NoPackage",
"pmd:StringToString",
"pmd:SystemPrintln",
"pmd:UnusedFormalParameter",
"pmd:UnusedLocalVariable"
]
},
{
"file": "PaymentService.java",
"ms": 1077.3503,
"diagnostics": 14,
"rules": [
"pmd:AtLeastOneConstructor",
"pmd:AvoidCatchingGenericException",
"pmd:EmptyCatchBlock",
"pmd:LocalVariableCouldBeFinal",
"pmd:MethodArgumentCouldBeFinal",
"pmd:NoPackage",
"pmd:StringToString",
"pmd:SystemPrintln",
"pmd:UnusedFormalParameter",
"pmd:UnusedLocalVariable"
]
},
{
"file": "ReportService.java",
"ms": 1089.7326,
"diagnostics": 14,
"rules": [
"pmd:AtLeastOneConstructor",
"pmd:AvoidCatchingGenericException",
"pmd:EmptyCatchBlock",
"pmd:LocalVariableCouldBeFinal",
"pmd:MethodArgumentCouldBeFinal",
"pmd:NoPackage",
"pmd:StringToString",
"pmd:SystemPrintln",
"pmd:UnusedFormalParameter",
"pmd:UnusedLocalVariable"
]
},
{
"file": "UserService.java",
"ms": 1102.7723,
"diagnostics": 14,
"rules": [
"pmd:AtLeastOneConstructor",
"pmd:AvoidCatchingGenericException",
"pmd:EmptyCatchBlock",
"pmd:LocalVariableCouldBeFinal",
"pmd:MethodArgumentCouldBeFinal",
"pmd:NoPackage",
"pmd:StringToString",
"pmd:SystemPrintln",
"pmd:UnusedFormalParameter",
"pmd:UnusedLocalVariable"
]
}
]
},
{
"lang": "sql",
"files": 4,
"totalMs": 1741.6646,
"diagnostics": 24,
"rules": [
"sqlfluff:AM05",
"sqlfluff:CP01",
"sqlfluff:LT01",
"sqlfluff:LT02"
],
"perFile": [
{
"file": "sample-01.sql",
"ms": 506.7881,
"diagnostics": 9,
"rules": [
"sqlfluff:AM05",
"sqlfluff:CP01",
"sqlfluff:LT01",
"sqlfluff:LT02"
]
},
{
"file": "sample-02.sql",
"ms": 420.9888,
"diagnostics": 3,
"rules": [
"sqlfluff:AM05",
"sqlfluff:CP01"
]
},
{
"file": "sample-03.sql",
"ms": 402.4894,
"diagnostics": 9,
"rules": [
"sqlfluff:AM05",
"sqlfluff:CP01",
"sqlfluff:LT01",
"sqlfluff:LT02"
]
},
{
"file": "sample-04.sql",
"ms": 411.3983,
"diagnostics": 3,
"rules": [
"sqlfluff:AM05",
"sqlfluff:CP01"
]
}
]
}
],
"totalFiles": 23,
"totalDiagnostics": 283,
"totalMs": 8576.842
}