1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
return 0
return +
return
return +
# Demo Micro-Benchmark / Stress-Test
#
# Complexity: 120,264,589,303 Interactions
#
# CPython: 640s on Apple M3 Max (1 thread) *
# HVM-CPU: 268s on Apple M3 Max (1 thread)
# Node.js: 128s on Apple M3 Max (1 thread) *
# HVM-CPU: 14s on Apple M3 Max (12 threads)
# HVM-GPU: 2s on NVIDIA RTX 4090 (32k threads)
#
# * estimated due to stack overflow