refactor: convert internal benchmark code to ESM