View README.txt
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.
View Makefile
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)
View Makefile
# 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
View blog0008.cpp
/*
* 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
*/
View microbench.cc
// 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>
View zend_ajax_action_small.php
class IndexController extends Zend_Controller_Action {
public function indexAction() {
die("42");
}
};