[{"data":1,"prerenderedAt":534},["ShallowReactive",2],{"navigation_docs":3,"-project-benchmarks-detection-speed":249,"-project-benchmarks-detection-speed-surround":525,"page-views-\u002Fproject\u002Fbenchmarks\u002Fdetection-speed":530},[4,29,104,124,194],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Start",false,"\u002Fstart","1.start",[10,14,19,24],{"title":11,"path":7,"stem":12,"icon":13},"What jscpd finds","1.start\u002Findex","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fstart\u002Finstallation","1.start\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quickstart","\u002Fstart\u002Fquickstart","1.start\u002F3.quickstart","i-lucide-rocket",{"title":25,"path":26,"stem":27,"icon":28},"Configuration basics","\u002Fstart\u002Fconfiguration","1.start\u002F4.configuration","i-lucide-settings-2",{"title":30,"icon":6,"path":31,"stem":32,"children":33,"page":6},"Guides","\u002Fguides","2.guides",[34,39,44,49,54,59,64,69,74,79,84,89,94,99],{"title":35,"path":36,"stem":37,"icon":38},"Use jscpd in CI","\u002Fguides\u002Fci","2.guides\u002F01.ci","i-lucide-github",{"title":40,"path":41,"stem":42,"icon":43},"Pre-commit hooks","\u002Fguides\u002Fpre-commit","2.guides\u002F02.pre-commit","i-lucide-git-commit",{"title":45,"path":46,"stem":47,"icon":48},"Fail only on new duplication","\u002Fguides\u002Fbaseline","2.guides\u002F03.baseline","i-lucide-git-compare",{"title":50,"path":51,"stem":52,"icon":53},"Monorepos","\u002Fguides\u002Fmonorepos","2.guides\u002F04.monorepos","i-lucide-folder-tree",{"title":55,"path":56,"stem":57,"icon":58},"Cross-format detection","\u002Fguides\u002Fcross-format","2.guides\u002F05.cross-format","i-lucide-layers",{"title":60,"path":61,"stem":62,"icon":63},"Agents","\u002Fguides\u002Fagents","2.guides\u002F06.agents","i-lucide-cpu",{"title":65,"path":66,"stem":67,"icon":68},"Editors","\u002Fguides\u002Feditors","2.guides\u002F07.editors","i-lucide-code",{"title":70,"path":71,"stem":72,"icon":73},"Duplication over git history","\u002Fguides\u002Fhistory","2.guides\u002F08.history","i-lucide-chart-no-axes-combined",{"title":75,"path":76,"stem":77,"icon":78},"Dashboard and health score","\u002Fguides\u002Fdashboard","2.guides\u002F09.dashboard","i-lucide-layout-dashboard",{"title":80,"path":81,"stem":82,"icon":83},"Dead code","\u002Fguides\u002Fdead-code","2.guides\u002F10.dead-code","i-lucide-ghost",{"title":85,"path":86,"stem":87,"icon":88},"Comparing two codebases","\u002Fguides\u002Fcompare","2.guides\u002F11.compare","i-lucide-git-compare-arrows",{"title":90,"path":91,"stem":92,"icon":93},"Semantic clones","\u002Fguides\u002Fsemantic-clones","2.guides\u002F12.semantic-clones","i-lucide-brain-circuit",{"title":95,"path":96,"stem":97,"icon":98},"Similar functions","\u002Fguides\u002Fsimilarity","2.guides\u002F13.similarity","i-lucide-list-tree",{"title":100,"path":101,"stem":102,"icon":103},"Boundaries","\u002Fguides\u002Fboundaries","2.guides\u002F14.boundaries","i-lucide-fence",{"title":105,"icon":6,"path":106,"stem":107,"children":108,"page":6},"Concepts","\u002Fconcepts","3.concepts",[109,114,119],{"title":110,"path":111,"stem":112,"icon":113},"Types of code clones","\u002Fconcepts\u002Fclone-types","3.concepts\u002F1.clone-types","i-lucide-copy",{"title":115,"path":116,"stem":117,"icon":118},"How detection works","\u002Fconcepts\u002Fhow-detection-works","3.concepts\u002F2.how-detection-works","i-lucide-scan-search",{"title":120,"path":121,"stem":122,"icon":123},"The health score","\u002Fconcepts\u002Fhealth-score","3.concepts\u002F3.health-score","i-lucide-heart-pulse",{"title":125,"icon":6,"path":126,"stem":127,"children":128,"page":6},"Reference","\u002Freference","4.reference",[129,134,139,144,181,186,190],{"title":130,"path":131,"stem":132,"icon":133},"CLI options","\u002Freference\u002Fcli","4.reference\u002F1.cli","i-lucide-terminal",{"title":135,"path":136,"stem":137,"icon":138},"The config file","\u002Freference\u002Fconfig-file","4.reference\u002F2.config-file","i-lucide-settings",{"title":140,"path":141,"stem":142,"icon":143},"Exit codes","\u002Freference\u002Fexit-codes","4.reference\u002F3.exit-codes","i-lucide-log-out",{"title":145,"icon":6,"path":146,"stem":147,"children":148},"Reporters","\u002Freference\u002Freporters","4.reference\u002F4.reporters\u002Findex",[149,151,156,161,166,171,176],{"title":145,"path":146,"stem":147,"icon":150},"i-lucide-file-chart-column",{"title":152,"path":153,"stem":154,"icon":155},"HTML reporter","\u002Freference\u002Freporters\u002Fhtml","4.reference\u002F4.reporters\u002F2.html","i-lucide-file-code",{"title":157,"path":158,"stem":159,"icon":160},"JSON reporter","\u002Freference\u002Freporters\u002Fjson","4.reference\u002F4.reporters\u002F3.json","i-lucide-braces",{"title":162,"path":163,"stem":164,"icon":165},"Badge reporter","\u002Freference\u002Freporters\u002Fbadge","4.reference\u002F4.reporters\u002F4.badge","i-lucide-award",{"title":167,"path":168,"stem":169,"icon":170},"SARIF reporter","\u002Freference\u002Freporters\u002Fsarif","4.reference\u002F4.reporters\u002F5.sarif","i-lucide-shield-check",{"title":172,"path":173,"stem":174,"icon":175},"CodeClimate reporter","\u002Freference\u002Freporters\u002Fcodeclimate","4.reference\u002F4.reporters\u002F6.codeclimate","i-lucide-flag-triangle-right",{"title":177,"path":178,"stem":179,"icon":180},"OpenMetrics reporter","\u002Freference\u002Freporters\u002Fopenmetrics","4.reference\u002F4.reporters\u002F7.openmetrics","i-lucide-activity",{"title":182,"path":183,"stem":184,"icon":185},"Supported formats","\u002Freference\u002Fsupported-formats","4.reference\u002F5.supported-formats","i-lucide-languages",{"title":187,"path":188,"stem":189,"icon":38},"GitHub Action","\u002Freference\u002Fgithub-action","4.reference\u002F6.github-action",{"title":191,"path":192,"stem":193,"icon":68},"Rust crates","\u002Freference\u002Frust-crates","4.reference\u002F7.rust-crates",{"title":195,"icon":6,"path":196,"stem":197,"children":198,"page":6},"Project","\u002Fproject","5.project",[199,204,209,214,239,244],{"title":200,"path":201,"stem":202,"icon":203},"Changelog","\u002Fproject\u002Fchangelog","5.project\u002F1.changelog","i-lucide-scroll-text",{"title":205,"path":206,"stem":207,"icon":208},"Migrating from v4 to v5","\u002Fproject\u002Fmigration","5.project\u002F2.migration","i-lucide-arrow-right-left",{"title":210,"path":211,"stem":212,"icon":213},"jscpd v4 (TypeScript)","\u002Fproject\u002Fv4","5.project\u002F3.v4","i-simple-icons-typescript",{"title":215,"icon":6,"path":216,"stem":217,"children":218},"Benchmarks","\u002Fproject\u002Fbenchmarks","5.project\u002F4.benchmarks\u002Findex",[219,221,226,230,235],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-gauge",{"title":222,"path":223,"stem":224,"icon":225},"Detection Speed","\u002Fproject\u002Fbenchmarks\u002Fdetection-speed","5.project\u002F4.benchmarks\u002F2.detection-speed","i-lucide-zap",{"title":227,"path":228,"stem":229,"icon":58},"Multi-Format Detection","\u002Fproject\u002Fbenchmarks\u002Fcross-format","5.project\u002F4.benchmarks\u002F3.cross-format",{"title":231,"path":232,"stem":233,"icon":234},"AI Token Efficiency","\u002Fproject\u002Fbenchmarks\u002Fai-token-efficiency","5.project\u002F4.benchmarks\u002F4.ai-token-efficiency","i-lucide-sparkles",{"title":236,"path":237,"stem":238,"icon":93},"Embedding Models","\u002Fproject\u002Fbenchmarks\u002Fembedding-models","5.project\u002F4.benchmarks\u002F5.embedding-models",{"title":240,"path":241,"stem":242,"icon":243},"Research","\u002Fproject\u002Fresearch","5.project\u002F5.research","i-lucide-graduation-cap",{"title":245,"path":246,"stem":247,"icon":248},"Articles","\u002Fproject\u002Farticles","5.project\u002F6.articles","i-lucide-newspaper",{"id":250,"title":222,"body":251,"description":516,"extension":517,"links":518,"meta":519,"navigation":520,"path":223,"seo":521,"stem":224,"__hash__":524},"docs\u002F5.project\u002F4.benchmarks\u002F2.detection-speed.md",{"type":252,"value":253,"toc":509},"minimark",[254,258],[255,256,222],"h2",{"id":257},"detection-speed",[259,260,261,265,268,272,403,406,433,437,498],"benchmark-speed",{},[262,263,264],"p",{},"The chart uses a logarithmic scale: each major gridline represents a 10× increase in time. This makes the 428× range between jscpd@5 (84ms) and PMD CPD (35,980ms) visually comparable while preserving differences between the faster tools.",[262,266,267],{},"jscpd@5's Rust engine makes it the only tool completing in under 100ms. The next fastest tool, jscpd-rs, takes 32% longer.",[255,269,271],{"id":270},"detection-accuracy","Detection Accuracy",[273,274,275,297],"table",{},[276,277,278],"thead",{},[279,280,281,285,288,291,294],"tr",{},[282,283,284],"th",{},"Tool",[282,286,287],{},"Time",[282,289,290],{},"Files",[282,292,293],{},"Clones",[282,295,296],{},"Dup Lines",[298,299,300,318,335,352,369,386],"tbody",{},[279,301,302,306,309,312,315],{},[303,304,305],"td",{},"jscpd@5",[303,307,308],{},"84ms",[303,310,311],{},"347",[303,313,314],{},"212",[303,316,317],{},"9,133",[279,319,320,323,326,329,332],{},[303,321,322],{},"jscpd-rs",[303,324,325],{},"111ms",[303,327,328],{},"360",[303,330,331],{},"222",[303,333,334],{},"10,317",[279,336,337,340,343,346,349],{},[303,338,339],{},"Duplo",[303,341,342],{},"162ms",[303,344,345],{},"319",[303,347,348],{},"518",[303,350,351],{},"13,049",[279,353,354,357,360,363,366],{},[303,355,356],{},"Fallow dupes",[303,358,359],{},"164ms",[303,361,362],{},"34",[303,364,365],{},"10",[303,367,368],{},"3,137",[279,370,371,374,377,380,383],{},[303,372,373],{},"Simian",[303,375,376],{},"964ms",[303,378,379],{},"547",[303,381,382],{},"424",[303,384,385],{},"15,351",[279,387,388,391,394,397,400],{},[303,389,390],{},"PMD CPD",[303,392,393],{},"35.980s",[303,395,396],{},"71",[303,398,399],{},"56",[303,401,402],{},"2,267",[262,404,405],{},"Detection accuracy varies significantly:",[407,408,409,417,423,428],"ul",{},[410,411,412,416],"li",{},[413,414,415],"strong",{},"jscpd@5 and jscpd-rs"," report similar clone counts (212 vs 222); both are token-based and attribute every clone to a language.",[410,418,419,422],{},[413,420,421],{},"Duplo and Simian"," report the most duplicates but include significant false positives: both are purely text-based without tokenization.",[410,424,425,427],{},[413,426,390],{}," finds the fewest clones (56) despite running for 36 seconds: it supports 34 languages only and cannot process most fixture formats.",[410,429,430,432],{},[413,431,356],{}," only analyzes TypeScript\u002FJavaScript files (34 of 547), making it unsuitable for polyglot codebases.",[255,434,436],{"id":435},"methodology","Methodology",[407,438,439,450,456,466,472,478,484],{},[410,440,441,444,445,449],{},[413,442,443],{},"Target:"," ",[446,447,448],"code",{},"fixtures\u002F"," directory, 547 files, 21,645 lines across 150+ formats",[410,451,452,455],{},[413,453,454],{},"Threshold:"," Default detection threshold (~5 lines \u002F ~50 tokens) for all tools",[410,457,458,461,462,465],{},[413,459,460],{},"Timing:"," External wall-clock measurement (",[446,463,464],{},"date +%s%N","), reported in milliseconds",[410,467,468,471],{},[413,469,470],{},"PMD CPD:"," Run for all 34 supported languages; results summed",[410,473,474,477],{},[413,475,476],{},"Fallow:"," Run from inside the target directory (no path argument support)",[410,479,480,483],{},[413,481,482],{},"Hardware:"," Apple Silicon (Darwin arm64)",[410,485,486,489,490,493,494,497],{},[413,487,488],{},"Measured:"," June 2026, with jscpd@5 built from the repository's ",[446,491,492],{},"rust\u002F"," directory (",[446,495,496],{},"cargo build --release",")",[262,499,500,501,508],{},"Full methodology details and reproducible commands are in the ",[502,503,507],"a",{"href":504,"rel":505},"https:\u002F\u002Fgithub.com\u002Fkucherenko\u002Fjscpd\u002Fblob\u002Fmaster\u002Fbenchmark\u002FBENCHMARK.md",[506],"nofollow","jscpd repository",".",{"title":510,"searchDepth":511,"depth":511,"links":512},"",2,[513,514,515],{"id":257,"depth":511,"text":222},{"id":270,"depth":511,"text":271},{"id":435,"depth":511,"text":436},"Benchmark comparison of jscpd@5 against five other copy\u002Fpaste detectors, speed and detection accuracy.","md",null,{},{"icon":225},{"title":522,"description":523},"Detection Speed Benchmarks — jscpd","jscpd@5 completes in 84ms, 428× faster than PMD CPD. Full benchmark comparison of 6 CPD tools.","tr6gr5FGtiluDuPchZNkdTQAj-hq2yoXyukN7iBxbe4",[526,528],{"title":215,"path":216,"stem":217,"description":527,"icon":220,"children":-1},"How jscpd v5 compares to other copy\u002Fpaste detectors in speed, format coverage and token efficiency.",{"title":227,"path":228,"stem":229,"description":529,"icon":58,"children":-1},"How jscpd detects duplicates across Svelte, Astro, Vue, and Markdown formats — vs other tools.",{"\u002Fproject\u002Fbenchmarks\u002Fdetection-speed":531},{"views":532,"visits":533},55,21,1795510273401]