```python
import time
def test(n: int = 100000):
# return '->'.join([f'{x}' for x in range(n)]) + '->'
return '->'.join(map(str, range(n))) + '->'
start = time.time()
test()
print(f"used: {(time.time() - start) * 1000}ms")
```
cpython3.10.3
time python
test.pyused: 19.52505111694336ms
python
test.py 0.05s user 0.03s system 87% cpu 0.096 total
pypy3.9-7.3.9
time pypy
test.pyused: 7.740020751953125ms
pypy
test.py 0.06s user 0.04s system 89% cpu 0.118 total
#9 @
lingly02 的代码
node v16.14.2
time node test.js
python sucks: 3.757ms
node test.js 0.05s user 0.02s system 95% cpu 0.069 total