Permalink
Browse files

move

  • Loading branch information...
1 parent 399d731 commit b8386bf0000a341dfed433fde1d462e73bfa3590 @felixge committed Oct 3, 2012
View
@@ -7,6 +7,7 @@ exports.run = function(name, benchmark) {
function run() {
if (startup + duration < Date.now()) {
+ process.exit(0);
return;
}
View
@@ -3,12 +3,12 @@ SHELL := /bin/bash
tsv_files = $(addprefix results/,$(addsuffix .tsv,$(benchmarks)))
png_files = $(subst pdf,png,$(wildcard pdfs/*.pdf))
-all: pdfs pngs tsvs
+all: pdfs pngs results
$(tsv_files):
./benchmark/run.js "`basename $@ .tsv`" | tee $@
-tsvs: $(tsv_files)
+results: $(tsv_files)
pdfs: $(tsv_files)
./pdfs.r
@@ -21,4 +21,4 @@ $(png_files): pngs/%.png: pdfs/%.pdf
clean:
rm -f results/*.tsv pngs/*.png pdfs/*.pdf
-.PHONY: all pdfs pngs tsvs clean
+.PHONY: all pdfs pngs results clean
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -17,21 +17,6 @@ results <- lapply(files, function(.file){
results <- do.call(rbind, results)
-# Bar plot
-mysql2 = subset(results, benchmark == 'mysql2')
-poc = subset(results, benchmark == 'poc')
-
-medians <- data.frame(
- lib = c('mysql2', 'poc'),
- mbit = c(median(mysql2$mbit), median(poc$mbit))
-)
-
-p <- ggplot(medians, aes(lib, mbit, fill=lib))
-p <- p + scale_y_continuous(label=comma_format(),name="mbit (median)")
-p + geom_bar()
-
-ggsave(filename="pdfs/mbit-bar.pdf", width=outputWidth, height=outputHeight)
-
# Jitter Graph
p <- ggplot(results, aes(benchmark, mbit, color=benchmark))
p <- p + scale_y_continuous(label=comma_format())
@@ -42,23 +27,20 @@ ggsave(filename="pdfs/mbit-jitter.pdf", width=outputWidth, height=outputHeight)
# Line graph
p <- ggplot(results, aes(number, mbit, color=benchmark))
p <- p + scale_y_continuous(label=comma_format())
-#p <- p + scale_x_datetime(label=date_format("%H:%M:%S"))
p + geom_line()
ggsave(filename="pdfs/mbit-line.pdf", width=outputWidth, height=outputHeight)
# Heap Used
p <- ggplot(results, aes(number, heapUsed / 1024 / 1024, color=benchmark))
p <- p + labs(y = "Heap Used (MB)")
-#p <- p + scale_x_datetime(label=date_format("%H:%M:%S"))
p + geom_line()
ggsave(filename="pdfs/heap-used-line.pdf", width=outputWidth, height=outputHeight)
# Heap Total
p <- ggplot(results, aes(number, heapTotal / 1024 / 1024, color=benchmark))
p <- p + labs(y = "Heap Total (MB)")
-#p <- p + scale_x_datetime(label=date_format("%H:%M:%S"))
p + geom_line()
ggsave(filename="pdfs/heap-total-line.pdf", width=outputWidth, height=outputHeight)

0 comments on commit b8386bf

Please sign in to comment.