def createNamespace(benchmarkInfo, benchmarkResult):
    """
    Creates a dictionary representing a namespace containing the member
    var/values on the benchmarkInfo and benchmarkResult passed in to eval/exec
    expressions in. This is usually used in place of locals() in calls to eval()
    or exec().
    """
    namespace = dict(benchmarkInfo.__dict__)
    namespace.update(benchmarkResult.__dict__)
    return namespace