Skip to content

Instantly share code, notes, and snippets.

Brian Anderson brson

Block or report user

Report or block brson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View a.txt
crates.io has https://github.com/rust-lang/crates.io/blob/master/docs/MIRROR.md as some loose docs and I believe there exist tools to sort of manage it for you and also mirror s3, but not sure
https://www.integer32.com/2016/10/08/bare-minimum-crates-io-mirror-plus-one.html
Bare Minimum Crates.io Mirror Plus One
I’ve been interested for a long time in making it easier toset up a mirror of crates.io. Making our vibrant ecosystem of librarieshighly available around the...
static.rust-lang.org measures in the dozens of terabytes range so I don't know if a mirror is really practical to maintain, nor am I sure if it'd be helpful as s3 seems fairly reliable
@brson
brson / time-passes-release.txt
Created Apr 7, 2019
Sum of time passes for tikv release profile 6ff46ed602017597823f5e868a1d37fadfd9ceab
View time-passes-release.txt
LLVM passes - 1773.56
llvm module passes - 892.79
codegen passes - 488.64
LTO passes - 234.98
codegen - 112.45
codegen to LLVM IR - 75.24
ll link - 61.56
item-bodies checking - 47.36
llvm function passes - 28.94
linking - 28.15
@brson
brson / sum-time-passes.txt
Last active Apr 7, 2019
TiKV sum of time-passes for commit 6ff46ed602017597823f5e868a1d37fadfd9ceab (debug build)
View sum-time-passes.txt
codegen passes - 216.57999999999936
codegen - 182.27599999999995
LLVM passes - 154.252
codegen to LLVM IR - 87.03499999999997
item-bodies checking - 68.76499999999999
linking - 42.206
write metadata - 41.588999999999984
running linker - 39.791
borrow checking - 35.21
monomorphization collection - 31.260999999999992
@brson
brson / sum-time-passes.py
Last active Apr 7, 2019
Sum and sort rustc -Ztime-passes
View sum-time-passes.py
import sys
import re
import operator
file = sys.argv[1]
r = re.compile("time: (\S.*); rss: (\S*)\s*(.*)")
map = { }
@brson
brson / sum-time-passes.py
Last active Apr 7, 2019
Script for accumulating and sorting output of rustc --Ztime-passes
View sum-time-passes.py
import sys
import re
import operator
file = sys.argv[1]
r = re.compile("time: (\S.*); rss: (\S*)\s*(.*)")
map = { }
View a.txt
+ cargo benchcmp tikv-1.txt tikv-2.txt
name tikv-1.txt ns/iter tikv-2.txt ns/iter diff ns/iter diff % speedup
coprocessor::codec::batch::lazy_column::benches::bench_lazy_batch_column_by_vec_clone 44,240 45,071 831 1.88% x 0.98
coprocessor::codec::batch::lazy_column::benches::bench_lazy_batch_column_by_vec_push_raw_10bytes 49,509 48,678 -831 -1.68% x 1.02
coprocessor::codec::batch::lazy_column::benches::bench_lazy_batch_column_clone 15,579 15,017 -562 -3.61% x 1.04
coprocessor::codec::batch::lazy_column::benches::bench_lazy_batch_column_clone_10bytes 14,539 14,633 94 0.65% x 0.99
coprocessor::codec::batch::lazy_column::benches::bench_lazy_batch_column_clone_and_decode 35,682 28,494
View dhat.txt
==11220== DHAT, a dynamic heap analysis tool
==11220== NOTE: This is an Experimental-Class Valgrind Tool
==11220== Copyright (C) 2010-2015, and GNU GPL'd, by Mozilla Inc
==11220== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==11220== Command: target/debug/comrak -e table -e autolink script/progit.md
==11220==
==11220== error calling PR_SET_PTRACER, vgdb might block
==11220==
==11220== ======== SUMMARY STATISTICS ========
==11220==
View flamegraph.html
<!doctype html>
<html>
<head>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
View flamegraph-dumps.html
<!doctype html>
<html>
<head>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
View deep-2-20000.md

ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_ab_

You can’t perform that action at this time.