Skip to content

Instantly share code, notes, and snippets.

View cruppstahl's full-sized avatar

Christoph Rupp cruppstahl

View GitHub Profile
@cruppstahl
cruppstahl / zend_ajax_action_small.php
Created October 4, 2011 06:14
Smallest Zend ajax action ever
class IndexController extends Zend_Controller_Action {
public function indexAction() {
die("42");
}
};
@cruppstahl
cruppstahl / microbench.cc
Created February 20, 2015 07:40
Micro benchmark memmove vs memcpy
// compile with
// g++ -Wall microbench.cc -lboost_system -lboost_chrono -Ofast -o microbench
//
#include <string.h>
#include <iostream>
#include <boost/chrono.hpp>
#include <iostream>
#include <iomanip>
@cruppstahl
cruppstahl / blog0008.cpp
Created February 10, 2016 13:57
Building an embedded column store database with upscaledb - part 3
/*
* This code is in the public domain.
*/
/*
* This code is for "Building an embedded column store database with
* upscaledb - part 3"
* http://upscaledb.com/blog/0008-building-an-embedded-column-store-database-part3.html
*/
@cruppstahl
cruppstahl / Makefile
Last active February 23, 2016 08:06
codeproject.com: An introduction to integer compression
# requires MaskedVbyte from github.com/lemire/MaskedVByet
# requires libfor from github.com/cruppstahl/libfor
all:
g++ test.cc -o test -Wall -I .. \
../MaskedVByte/varintdecode.o \
../MaskedVByte/varintencode.o \
../libfor/libfor.a
UPSCALEDB=/home/ruppc/prj/upscaledb
INCDIR=-I$(UPSCALEDB)/include
LIBDIR=-L$(UPSCALEDB)/src/.libs
LIBS=-lleveldb -ldb -lboost_system -lboost_thread -lcrypto -lpthread -lsnappy -lz -ltcmalloc_minimal -lprotobuf -ldl
CC=g++ -std=c++11 -g -O0
all:
$(CC) benchmark.cc -o benchmark \
$(UPSCALEDB)/src/.libs/libupscaledb.a \
$(INCDIR) $(LIBDIR) $(LIBS)
@cruppstahl
cruppstahl / README.txt
Last active September 28, 2016 08:40
upscaledb-mysql 0.0.1: initial benchmarks
These files were used to create the benchmarks for the release of upscaledb-mysql 0.0.1.
=== sysbench
Use sysbench 1.0. The shell script loads and runs the tests.
I ran various tests - with and without transactions, with LOCK TABLE etc. Results are in sysbench-results.txt.
=== uqi1
This script performs a `SELECT COUNT(*) FROM table`. The table was from TPC-C order_line with 6 million rows.