refactor: convert to ESM benchmarks code