Added src/ dir and functions to compute performance metrics.