Skip to content

Instantly share code, notes, and snippets.

@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_

View spec.txt
---
title: GitHub Flavored Markdown Spec
version: 0.28
date: '2017-08-01'
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
...
# Introduction
## What is GitHub Flavored Markdown?
You can’t perform that action at this time.