view coverage.sh @ 433:9d8aae30be98

cmp: Make memtable key comparisons ~4x faster. Similar to the internal key comparison improvement: Only parse expensive FixedInts when required. This change brings rusty-leveldb within 10% of the original for write-heavy workloads and 25% for iterating workloads.
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 22 Oct 2017 09:42:19 +0200
parents 62c425f76e9a
children 76562348cb17
line wrap: on
line source


#!/bin/bash

KCOV=kcov
KCOV_OPTS="--verify --exclude-pattern=/.cargo"
KCOV_OUT="./kcov-out/"

export RUSTFLAGS="-C link-dead-code"

TEST_BIN=$(cargo test 2>&1 >/dev/null | awk '/^     Running target\/debug\// { print $2 }')

${KCOV} ${KCOV_OPTS} ${KCOV_OUT} ${TEST_BIN} && xdg-open ${KCOV_OUT}/index.html