wip: better performance.mark calls