-
Notifications
You must be signed in to change notification settings - Fork 8
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: utkarshkukreti/diff.rs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.12
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: utkarshkukreti/diff.rs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.1.13
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 15 commits
- 10 files changed
- 1 contributor
Commits on Apr 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b9a0ff4 - Browse repository at this point
Copy the full SHA b9a0ff4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a8471a - Browse repository at this point
Copy the full SHA 1a8471aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20c758c - Browse repository at this point
Copy the full SHA 20c758cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 782d454 - Browse repository at this point
Copy the full SHA 782d454View commit details -
optimize diffing input with long matching prefix, see #15
The benchmark in this commit speeds up from ~360us to ~210us.
Configuration menu - View commit details
-
Copy full SHA for 0f0aa58 - Browse repository at this point
Copy the full SHA 0f0aa58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3da8d2d - Browse repository at this point
Copy the full SHA 3da8d2dView commit details
Commits on Apr 19, 2022
-
add a real-world benchmark using sample files from rust-lang/rust
Data generated using the following command run on rust-lang/rust#c102c5cf: $ for sha in `git rev-list HEAD -- .gitignore`; do git show ${sha}:.gitignore >> gitignores.txt; echo '!!!' >> gitignores.txt; doneConfiguration menu - View commit details
-
Copy full SHA for 7c8212b - Browse repository at this point
Copy the full SHA 7c8212bView commit details
Commits on Apr 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 24ded37 - Browse repository at this point
Copy the full SHA 24ded37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cebd99 - Browse repository at this point
Copy the full SHA 0cebd99View commit details
Commits on Jun 29, 2022
-
optimize by using slices instead of generic iterators where possible
This version allocations a bit more memory up front but is faster in all benchmarks, sometimes significantly faster. group after before ----- ----- ------ 10 equal items 1.00 171.8±11.75ns 1.09 187.6±7.73ns 10 non-equal items 1.00 1150.8±36.11ns 1.08 1242.8±36.13ns 100 equal items 1.00 296.0±10.78ns 1.24 366.0±13.09ns 100 non-equal items 1.00 29.2±1.57µs 1.15 33.5±1.38µs 1000 equal items 1.00 1354.9±36.02ns 1.50 2.0±0.06µs 1000 non-equal items 1.00 1868.1±68.60µs 1.24 2.3±0.07ms 1024 byte string, last 256 different 1.00 143.9±3.67µs 1.47 212.1±7.86µs diff::chars on gitignore files from rust-lang/rust 1.00 68.6±1.99ms 1.46 100.5±2.87ms diff::lines on gitignore files from rust-lang/rust 1.00 5.9±0.15ms 3.69 21.7±0.47ms empty 1.00 109.1±4.98ns 1.14 124.2±4.88ns
Configuration menu - View commit details
-
Copy full SHA for 6402260 - Browse repository at this point
Copy the full SHA 6402260View commit details -
optimize by using a single Vec instead of two-level nested Vec
group after before ----- ----- ------ 10 equal items 1.00 113.1±3.09ns 1.50 169.6±5.33ns 10 non-equal items 1.00 498.5±19.32ns 2.28 1137.9±43.20ns 100 equal items 1.00 257.9±8.30ns 1.14 295.2±11.59ns 100 non-equal items 1.00 17.4±0.40µs 1.66 28.8±1.02µs 1000 equal items 1.12 1534.4±45.30ns 1.00 1363.9±41.31ns 1000 non-equal items 1.08 2.0±0.08ms 1.00 1854.9±64.81µs 1024 byte string, last 256 different 1.00 101.2±3.13µs 1.43 144.6±4.20µs diff::chars on gitignore files from rust-lang/rust 1.00 65.9±2.54ms 1.04 68.7±2.67ms diff::lines on gitignore files from rust-lang/rust 1.00 4.9±0.18ms 1.20 5.9±0.15ms empty 1.00 58.1±2.91ns 1.85 107.4±3.85ns
Configuration menu - View commit details
-
Copy full SHA for c6fef96 - Browse repository at this point
Copy the full SHA c6fef96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ebdaf2 - Browse repository at this point
Copy the full SHA 8ebdaf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a3da7b - Browse repository at this point
Copy the full SHA 9a3da7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ebd29d - Browse repository at this point
Copy the full SHA 3ebd29dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d0e68b - Browse repository at this point
Copy the full SHA 0d0e68bView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.1.12...0.1.13