Skip to content

Instantly share code, notes, and snippets.

@cjfuller
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjfuller/12fcad06eb9af12c9e44 to your computer and use it in GitHub Desktop.
Save cjfuller/12fcad06eb9af12c9e44 to your computer and use it in GitHub Desktop.
#lang racket
(require plot)
(define xdata '(10 25 50 100 200))
(define ydata '(5181 7346 8199 8886 8878))
(parameterize ([plot-font-family 'default]
[plot-font-size 16]
[plot-width 800]
[plot-height 600])
(plot (list
(function (lambda (_) 2362) 0 200
#:color 'blue
#:style 'short-dash)
(lines
(for/list ([x (in-list xdata)]
[y (in-list ydata)])
(vector x y))))
#:x-min 0
#:x-max 200
#:y-min 0
#:y-max 10000
#:x-label "Batch size"
#:y-label "Objects processed / s"
#:out-file (expand-user-path "~/Pictures/mapreduce_batch_profiling.svg")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment