Permalink
Browse files

Better plot

  • Loading branch information...
1 parent 7733c1e commit bf6ff5555e9b2ac02dbcdda0ce040cab39e49000 @felixge committed Sep 27, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.md
  2. +1 −1 figures/mysql2-vs-poc/pdfs/generate.r
View
@@ -125,7 +125,7 @@ So I started to plot the memory usage, and discovered something interesting
when plotting the heapTotal. The heapTotal is the amount of memory v8 reserves
storing you JavaScript objects in. V8 reserves this memory so it doesn't have
to do a new allocation whenever you create an object, which would be rather
-slow. Anyway, when plotting the heapTotal, we get a graph like this:
+slow. Anyway, when plotting the heapUsage, we get a graph like this:
<a href="./faster-than-c/raw/master/figures/mysql2-vs-poc/pdfs/memory-line.pdf">
<img width="512" src="./faster-than-c/raw/master/figures/mysql2-vs-poc/pngs/memory-line.png">
@@ -43,7 +43,7 @@ ggsave(filename="line.pdf", width=outputWidth, height=outputHeight)
# Memory Line graph
p <- ggplot(combined, aes(time, heapUsed / 1024 / 1024, color=lib))
-p <- p + scale_y_continuous(name="Heap Total (MB)")
+p <- p + labs(y = "Heap Used (MB)")
p <- p + scale_x_datetime(label=date_format("%H:%M:%S"))
p + geom_line()

0 comments on commit bf6ff55

Please sign in to comment.