Skip to content

Commit

Permalink
Merged in coinplugin/go-metadium/metadium (pull request #15)
Browse files Browse the repository at this point in the history
Metadium

Approved-by: Uh Sado <[email protected]>
  • Loading branch information
sadoci committed Mar 4, 2019
2 parents fd9dc69 + 31b80e2 commit 4f39919
Show file tree
Hide file tree
Showing 44 changed files with 3,108 additions and 287 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ifneq ($(shell uname), Linux)
endif

ifneq ($(USE_ROCKSDB), NO)
ROCKSDB_ENV=DIR=$(shell pwd)/build/_workspace/src/github.com/ethereum/go-ethereum/vendor/github.com/facebook/rocksdb CGO_CFLAGS=-I$${DIR}/include CGO_LDFLAGS="-L$${DIR} -lrocksdb -lstdc++ -lm -lz"
ROCKSDB_DIR=$(shell pwd)/build/_workspace/src/github.com/ethereum/go-ethereum/vendor/github.com/facebook/rocksdb
ROCKSDB_TAG=-tags rocksdb
endif

Expand All @@ -41,7 +41,13 @@ metadium: gmet logrot
@echo "Done building build/metadium.tar.gz"

gmet: vendor rocksdb metadium/admin_abi.go
$(ROCKSDB_ENV) build/env.sh go run build/ci.go install $(ROCKSDB_TAG) ./cmd/gmet
ifeq ($(USE_ROCKSDB), NO)
build/env.sh go run build/ci.go install $(ROCKSDB_TAG) ./cmd/gmet
else
CGO_CFLAGS=-I$(ROCKSDB_DIR)/include \
CGO_LDFLAGS="-L$(ROCKSDB_DIR) -lstdc++ -lrocksdb -lm $(shell awk '/PLATFORM_LDFLAGS/ {sub("PLATFORM_LDFLAGS=", ""); print} /JEMALLOC=1/ {print "-ljemalloc"}' < $(ROCKSDB_DIR)/make_config.mk)" \
build/env.sh go run build/ci.go install $(ROCKSDB_TAG) ./cmd/gmet
endif
@echo "Done building."
@echo "Run \"$(GOBIN)/gmet\" to launch gmet."

Expand Down
125 changes: 125 additions & 0 deletions cmd/dbbench/db-bench.1k.load
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
write a1 1 1000000 10000 1024
rread a1 1000000
write a1 1000001 1000000 10000 1024
rread a1 1000000
write a1 2000001 1000000 10000 1024
rread a1 1000000
write a1 3000001 1000000 10000 1024
rread a1 1000000
write a1 4000001 1000000 10000 1024
rread a1 1000000
write a1 5000001 1000000 10000 1024
rread a1 1000000
write a1 6000001 1000000 10000 1024
rread a1 1000000
write a1 7000001 1000000 10000 1024
rread a1 1000000
write a1 8000001 1000000 10000 1024
rread a1 1000000
write a1 9000001 1000000 10000 1024
rread a1 1000000
write a1 10000001 1000000 10000 1024
rread a1 1000000
write a1 11000001 1000000 10000 1024
rread a1 1000000
write a1 12000001 1000000 10000 1024
rread a1 1000000
write a1 13000001 1000000 10000 1024
rread a1 1000000
write a1 14000001 1000000 10000 1024
rread a1 1000000
write a1 14000001 1000000 10000 1024
rread a1 1000000
write a1 15000001 1000000 10000 1024
rread a1 1000000
write a1 16000001 1000000 10000 1024
rread a1 1000000
write a1 17000001 1000000 10000 1024
rread a1 1000000
write a1 18000001 1000000 10000 1024
rread a1 1000000
write a1 19000001 1000000 10000 1024
rread a1 1000000
write a1 20000001 1000000 10000 1024
rread a1 1000000
write a1 21000001 1000000 10000 1024
rread a1 1000000
write a1 22000001 1000000 10000 1024
rread a1 1000000
write a1 23000001 1000000 10000 1024
rread a1 1000000
write a1 24000001 1000000 10000 1024
rread a1 1000000
write a1 25000001 1000000 10000 1024
rread a1 1000000
write a1 26000001 1000000 10000 1024
rread a1 1000000
write a1 27000001 1000000 10000 1024
rread a1 1000000
write a1 28000001 1000000 10000 1024
rread a1 1000000
write a1 29000001 1000000 10000 1024
rread a1 1000000
write a1 30000001 1000000 10000 1024
rread a1 1000000
write a1 31000001 1000000 10000 1024
rread a1 1000000
write a1 32000001 1000000 10000 1024
rread a1 1000000
write a1 33000001 1000000 10000 1024
rread a1 1000000
write a1 34000001 1000000 10000 1024
rread a1 1000000
write a1 35000001 1000000 10000 1024
rread a1 1000000
write a1 36000001 1000000 10000 1024
rread a1 1000000
write a1 37000001 1000000 10000 1024
rread a1 1000000
write a1 38000001 1000000 10000 1024
rread a1 1000000
write a1 39000001 1000000 10000 1024
rread a1 1000000
write a1 40000001 1000000 10000 1024
rread a1 1000000
write a1 41000001 1000000 10000 1024
rread a1 1000000
write a1 42000001 1000000 10000 1024
rread a1 1000000
write a1 43000001 1000000 10000 1024
rread a1 1000000
write a1 44000001 1000000 10000 1024
rread a1 1000000
write a1 45000001 1000000 10000 1024
rread a1 1000000
write a1 46000001 1000000 10000 1024
rread a1 1000000
write a1 47000001 1000000 10000 1024
rread a1 1000000
write a1 48000001 1000000 10000 1024
rread a1 1000000
write a1 49000001 1000000 10000 1024
rread a1 1000000
write a1 50000001 1000000 10000 1024
rread a1 1000000
write a1 51000001 1000000 10000 1024
rread a1 1000000
write a1 52000001 1000000 10000 1024
rread a1 1000000
write a1 53000001 1000000 10000 1024
rread a1 1000000
write a1 54000001 1000000 10000 1024
rread a1 1000000
write a1 55000001 1000000 10000 1024
rread a1 1000000
write a1 56000001 1000000 10000 1024
rread a1 1000000
write a1 57000001 1000000 10000 1024
rread a1 1000000
write a1 58000001 1000000 10000 1024
rread a1 1000000
write a1 59000001 1000000 10000 1024
rread a1 1000000
rread a1 1000000
rread a1 1000000
rread a1 1000000
111 changes: 111 additions & 0 deletions cmd/dbbench/db-bench.350.load
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
write a1 1 10000000 10000 350
rread a1 1000000
write a1 10000001 10000000 10000 350
rread a1 1000000
write a1 20000001 10000000 10000 350
rread a1 1000000
write a1 30000001 10000000 10000 350
rread a1 1000000
write a1 40000001 10000000 10000 350
rread a1 1000000
write a1 50000001 10000000 10000 350
rread a1 1000000
write a1 60000001 10000000 10000 350
rread a1 1000000
write a1 70000001 10000000 10000 350
rread a1 1000000
write a1 80000001 10000000 10000 350
rread a1 1000000
write a1 90000001 10000000 10000 350
rread a1 1000000
write a1 100000001 10000000 10000 350
rread a1 1000000
write a1 110000001 10000000 10000 350
rread a1 1000000
write a1 120000001 10000000 10000 350
rread a1 1000000
write a1 130000001 10000000 10000 350
rread a1 1000000
write a1 140000001 10000000 10000 350
rread a1 1000000
write a1 140000001 10000000 10000 350
rread a1 1000000
write a1 150000001 10000000 10000 350
rread a1 1000000
write a1 160000001 10000000 10000 350
rread a1 1000000
write a1 170000001 10000000 10000 350
rread a1 1000000
write a1 180000001 10000000 10000 350
rread a1 1000000
write a1 190000001 10000000 10000 350
rread a1 1000000
write a1 200000001 10000000 10000 350
rread a1 1000000
write a1 210000001 10000000 10000 350
rread a1 1000000
write a1 220000001 10000000 10000 350
rread a1 1000000
write a1 230000001 10000000 10000 350
rread a1 1000000
write a1 240000001 10000000 10000 350
rread a1 1000000
write a1 250000001 10000000 10000 350
rread a1 1000000
write a1 260000001 10000000 10000 350
rread a1 1000000
write a1 270000001 10000000 10000 350
rread a1 1000000
write a1 280000001 10000000 10000 350
rread a1 1000000
write a1 290000001 10000000 10000 350
rread a1 1000000
write a1 300000001 10000000 10000 350
rread a1 1000000
write a1 310000001 10000000 10000 350
rread a1 1000000
write a1 320000001 10000000 10000 350
rread a1 1000000
write a1 330000001 10000000 10000 350
rread a1 1000000
write a1 340000001 10000000 10000 350
rread a1 1000000
write a1 350000001 10000000 10000 350
rread a1 1000000
write a1 360000001 10000000 10000 350
rread a1 1000000
write a1 370000001 10000000 10000 350
rread a1 1000000
write a1 380000001 10000000 10000 350
rread a1 1000000
write a1 390000001 10000000 10000 350
rread a1 1000000
write a1 400000001 10000000 10000 350
rread a1 1000000
write a1 410000001 10000000 10000 350
rread a1 1000000
write a1 420000001 10000000 10000 350
rread a1 1000000
write a1 430000001 10000000 10000 350
rread a1 1000000
write a1 440000001 10000000 10000 350
rread a1 1000000
write a1 450000001 10000000 10000 350
rread a1 1000000
write a1 460000001 10000000 10000 350
rread a1 1000000
write a1 470000001 10000000 10000 350
rread a1 1000000
write a1 480000001 10000000 10000 350
rread a1 1000000
write a1 490000001 10000000 10000 350
rread a1 1000000
write a1 500000001 10000000 10000 350
rread a1 1000000
rread a1 1000000
rread a1 1000000
rread a1 1000000
rread a1 1000000
rread a1 1000000
rread a1 1000000
rread a1 1000000
65 changes: 65 additions & 0 deletions cmd/dbbench/db-bench.4k.load
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
write a1 1 1000000 10000 4000
rread a1 100000
write a1 1000001 1000000 10000 4000
rread a1 100000
write a1 2000001 1000000 10000 4000
rread a1 100000
write a1 3000001 1000000 10000 4000
rread a1 100000
write a1 4000001 1000000 10000 4000
rread a1 100000
write a1 5000001 1000000 10000 4000
rread a1 100000
write a1 6000001 1000000 10000 4000
rread a1 100000
write a1 7000001 1000000 10000 4000
rread a1 100000
write a1 8000001 1000000 10000 4000
rread a1 100000
write a1 9000001 1000000 10000 4000
rread a1 100000
write a1 10000001 1000000 10000 4000
rread a1 100000
write a1 11000001 1000000 10000 4000
rread a1 100000
write a1 12000001 1000000 10000 4000
rread a1 100000
write a1 13000001 1000000 10000 4000
rread a1 100000
write a1 14000001 1000000 10000 4000
rread a1 100000
write a1 14000001 1000000 10000 4000
rread a1 100000
write a1 15000001 1000000 10000 4000
rread a1 100000
write a1 16000001 1000000 10000 4000
rread a1 100000
write a1 17000001 1000000 10000 4000
rread a1 100000
write a1 18000001 1000000 10000 4000
rread a1 100000
write a1 19000001 1000000 10000 4000
rread a1 100000
write a1 20000001 1000000 10000 4000
rread a1 100000
write a1 21000001 1000000 10000 4000
rread a1 100000
write a1 22000001 1000000 10000 4000
rread a1 100000
write a1 23000001 1000000 10000 4000
rread a1 100000
write a1 24000001 1000000 10000 4000
rread a1 100000
write a1 25000001 1000000 10000 4000
rread a1 100000
write a1 26000001 1000000 10000 4000
rread a1 100000
write a1 27000001 1000000 10000 4000
rread a1 100000
write a1 28000001 1000000 10000 4000
rread a1 100000
write a1 29000001 1000000 10000 4000
rread a1 100000
rread a1 100000
rread a1 100000
rread a1 100000
Loading

0 comments on commit 4f39919

Please sign in to comment.