Changed signature of totalData function
Added example benchmark app.