Skip to content

Instantly share code, notes, and snippets.

@pazner
pazner / results.txt
Last active August 18, 2020 18:24
Julia optimizing
% 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
#!/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`;