#!/usr/bin/env r suppressMessages(library(inline)) suppressMessages(library(Rcpp)) benchmark <- function(start = settings$start, hand.written = settings$hand.written, sugar = settings$sugar, expr = settings$expr, runs = settings$runs, data = settings$data, end = settings$end, inc = settings$inc, settings = list( start = "", hand.written = "", sugar = "", expr = NULL, runs = 500, data = NULL , end = "", inc = "" ) ) { expr <- force(expr) inc <- force( inc ) src <- sprintf( ' unsigned int runs = as(runss); Environment e(env) ; %s Timer timer; // approach one timer.Start(); for (unsigned int i=0; i