This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% cc -O test.c && time ./a.out | |
./a.out 0.11s user 0.08s system 98% cpu 0.201 total | |
# Without manual quotient/remainder optimization | |
julia> prof() | |
0.807275 seconds | |
# With manual quotient/remainder optimization | |
julia> prof() | |
0.474462 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
$current_branch = `git symbolic-ref --short HEAD`; | |
$commit_range = "master..$current_branch"; | |
$status = 0; # Return code | |
$total_size = 0; | |
# Loop over all commits in this branch | |
@commits = split /\n/, `git log --pretty=format:%H $commit_range`; |