Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: rewrite superimpose_styles function #804

Merged
merged 1 commit into from
Nov 27, 2021
Merged

Conversation

dandavison
Copy link
Owner

@dandavison dandavison commented Nov 27, 2021

Slightly faster:

hyperfine --warmup 10 --min-runs 20 \                                                                                                                                             
                'target/release/delta --no-gitconfig < /tmp/delta-benchmark-input.gitdiff > /dev/null'
Benchmark 1: target/release/delta --no-gitconfig < /tmp/delta-benchmark-input.gitdiff > /dev/null                                                                                 
  Time (mean ± σ):     808.2 ms ±  20.0 ms    [User: 791.6 ms, System: 31.7 ms]                                                                                                   
  Range (min … max):   784.6 ms … 872.3 ms    20 runs                                                                                                                             

vs previous

hyperfine --warmup 10 --min-runs 20 \                                                    
                'target/release/delta --no-gitconfig < /tmp/delta-benchmark-input.gitdiff > /dev/null'
Benchmark 1: target/release/delta --no-gitconfig < /tmp/delta-benchmark-input.gitdiff > /dev/null                                        
  Time (mean ± σ):     830.0 ms ±   7.3 ms    [User: 818.1 ms, System: 31.4 ms]                                                                                                   
  Range (min … max):   818.0 ms … 844.8 ms    20 runs                                                                                                                             

~2.65% speedup

@dandavison dandavison merged commit 3e21f00 into master Nov 27, 2021
@dandavison dandavison deleted the superimpose branch November 27, 2021 20:09
dandavison added a commit that referenced this pull request Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant