> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# OmniDiff Performance and Accuracy Across File Types
- URL: https://www.stirup.si/omnidiff-performance-and-accuracy-across-file-types-1c2c0036/
- Published: 2026-11-02T14:47:46.000Z
- Updated: 2026-11-02T14:47:46.000Z
- Description: OmniDiff achieves median diff times under 100ms and 99.95% code change detection, though archives face challenges meeting 99th-percentile accuracy goals due to complexity.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## Performance Metrics and Speed

OmniDiff demonstrates impressive performance metrics, with a median diff time of under 100ms, as stated in its guiding principles. According to the evidence, it can diff 99.95% of code changes and achieve content-aware diffing for 98.8% of changes using content-specific algorithms. Speed measurements were conducted on a T14s with an Intel Core i7-1370P and 32 GB RAM. For code, the accuracy rates range from 70% to 98%, while for pictures, they range from 69% to 96%. For archives, the accuracy is 88%, and for message catalogs, it is 83%. However, archives miss the 99th-percentile goal due to the complexity of handling thousands of changed members. These results highlight OmniDiff's speed and accuracy across various file types, though some categories still face challenges in meeting the highest performance benchmarks.

## Accuracy and Test Cases

OmniDiff demonstrates strong accuracy in its diff comparisons, with 90% of test cases showing zero mismatched bytes when compared to hand-authored ground-truth mappings in `src/test/data/diffs/` ([Hacker News](https://github.com/ivankovic/omnidiff?ref=stirup.si)). While most discrepancies are attributed to rendering differences rather than matching errors, 91% of mismatches in both `--full` and `--minimal` byte comparisons are due to highlighting rules rather than the matcher itself ([Hacker News](https://github.com/ivankovic/omnidiff?ref=stirup.si)). Additionally, OmniDiff evaluates content changes based on human judgments, categorizing changes as invisible, imperceptible, artifacts, edited, redrawn, or replaced ([Hacker News](https://github.com/ivankovic/omnidiff?ref=stirup.si)). These judgments are compared against OmniDiff's own assessments, ensuring alignment with human perception of change.

## Integration and Configuration

OmniDiff integrates with Git through simple configuration steps. To use it, ensure a C compiler is on your PATH and install a Rust toolchain with rustc 1.92 or later ([Hacker News](https://github.com/ivankovic/omnidiff?ref=stirup.si)). Users can run the interactive setup wizard with `omnidiff git configure` to set up OmniDiff globally or for a specific repository ([Hacker News](https://github.com/ivankovic/omnidiff?ref=stirup.si)). Alternatively, manual configuration is possible by adding `git config difftool.omnidiff.cmd 'omnidiff "$LOCAL" "$REMOTE"'` and then using `git difftool --tool=omnidiff`. For convenience, `git config diff.tool omnidiff` sets OmniDiff as the default difftool, eliminating the need for `--tool` flags ([Hacker News](https://github.com/ivankovic/omnidiff?ref=stirup.si)). Additionally, OmniDiff can be invoked directly with `GIT_EXTERNAL_DIFF=omnidiff git diff`, bypassing the need for difftool configuration entirely ([Hacker News](https://github.com/ivankovic/omnidiff?ref=stirup.si)). This flexibility supports a wide range of file types, including pictures, archives, and fonts, with concise change reports generated automatically.

## Supported Content and Diffing Capabilities

OmniDiff supports a wide range of content types, including text, images, and binary files, and categorizes changes based on visibility and impact. Each change is labeled as invisible, imperceptible, artifacts, edited, redrawn, or replaced, depending on how noticeable the difference is to a reader. For text files, changes are further classified by whitespace, formatting, and rewritten content. According to research, 98.8% of file changes across 7,352 repositories are diffed as text or by their content, with 6,481 repositories fully analyzed. PDFs are also supported, though only 57% of them process under 100ms due to the need to redraw every changed page.

## Exit Code Behavior and Tool Integration

OmniDiff's exit code behavior is carefully designed to align with common tooling expectations. The --exit-code flag is opt-in rather than the default, mirroring how git diff exits 0 even when files differ. This is because OmniDiff's typical non-interactive usage involves version control systems that interpret non-zero exit codes as tool failures. For example, jj warns on every file, while git difftool with difftool.trustExitCode=true aborts the entire diff process. Additionally, the 7-argument GIT\_EXTERNAL\_DIFF form remains at exit code 0 even with --exit-code, as git treats non-zero exits there as fatal errors. For integration with jj, omnidiff --mode json BEFORE AFTER prints the diff as a single JSON object, and for full-screen TUI support in jj repos, omnidiff can be run directly without requiring an interactive viewer.

## Sources and reporting notes

- [Hacker News](https://github.com/ivankovic/omnidiff?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.