-
Notifications
You must be signed in to change notification settings - Fork 11
/
timings_cpu.txt
113 lines (104 loc) · 3.77 KB
/
timings_cpu.txt
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Matlab Closed Form
[Call, Put] = blsprice(Price, Strike, Rate, Time, Volatility)
[42.0707, 2.7238] = blsprice(100, 100, 0.05, 10, 0.15)
42.0705231
Computed with CPU in 45.04 ms (timesteps 1, resolution 2048).
42.0706762
Computed with CPU in 9.89 ms (timesteps 1, resolution 8192).
42.0706858
Computed with CPU in 23.58 ms (timesteps 1, resolution 32768).
2.72358908
Computed with CPU in 5.57 ms (timesteps 1, resolution 2048).
2.72374222
Computed with CPU in 9.93 ms (timesteps 1, resolution 8192).
2.72375179
Computed with CPU in 23.74 ms (timesteps 1, resolution 32768).
Matlab American Option (based on lattice implementation)
Expected Call price: 42.0707
42.0706456
Computed with CPU in 504.48 ms (timesteps 512, resolution 4096).
42.0706762
Computed with CPU in 1957.10 ms (timesteps 1024, resolution 8192).
42.0706839
Computed with CPU in 7888.13 ms (timesteps 2048, resolution 16384).
Expected Put price: 7.0639
7.05428955
Computed with CPU in 495.73 ms (timesteps 512, resolution 4096).
7.05929862
Computed with CPU in 1944.85 ms (timesteps 1024, resolution 8192).
7.06179986
Computed with CPU in 7855.38 ms (timesteps 2048, resolution 16384).
Surkov (2009) table C.1 p.106
Parameters EUR-C and MJD-C p.103-104
Reference price 4.391243
4.38906213
Computed with CPU in 13.52 ms (timesteps 1, resolution 2048).
4.3907
Computed with CPU in 8.67 ms (timesteps 1, resolution 4096).
4.3911093
Computed with CPU in 12.71 ms (timesteps 1, resolution 8192).
4.39121162
Computed with CPU in 20.41 ms (timesteps 1, resolution 16384).
4.3912372
Computed with CPU in 34.86 ms (timesteps 1, resolution 32768).
Surkov (2009) table C.2 p.106
Parameters EUR-D and KJD-A p.103-104
Reference price 0.0426761 and 0.0426478
0.0426370209
Computed with CPU in 23.44 ms (timesteps 1, resolution 2048).
0.0426515313
Computed with CPU in 8.41 ms (timesteps 1, resolution 4096).
0.0426551695
Computed with CPU in 12.19 ms (timesteps 1, resolution 8192).
0.0426560849
Computed with CPU in 19.19 ms (timesteps 1, resolution 16384).
0.0426563166
Computed with CPU in 32.69 ms (timesteps 1, resolution 32768).
Surkov (2009) table C.5 p.107
Parameters AMR-B MJD-C p.103-104
Reference price 3.2412435
3.23849784
Computed with CPU in 67.22 ms (timesteps 128, resolution 2048).
3.24057246
Computed with CPU in 481.25 ms (timesteps 512, resolution 4096).
3.24108377
Computed with CPU in 3839.91 ms (timesteps 2048, resolution 8192).
3.24121143
Computed with CPU in 31091.45 ms (timesteps 8192, resolution 16384).
3.24124333
Computed with CPU in 248233.31 ms (timesteps 32768, resolution 32768).
Surkov (2009) table C.10 p.109
Parameters AMR-D MJD-C p.103-104
Reference price 4.537366137
4.53683861
Computed with CPU in 487.70 ms (timesteps 512, resolution 4096).
4.53720543
Computed with CPU in 1931.89 ms (timesteps 1024, resolution 8192).
4.53736173
Computed with CPU in 7786.64 ms (timesteps 2048, resolution 16384).
Lippa (2013), table 2.1 p.14
Andersen (2000) closed-form reference price: 18.0034
Surkov (2009) table 2.2 p.33 reference price: 18.00362936
18.0002551
Computed with CPU in 13.07 ms (timesteps 1, resolution 2048).
18.0003075
Computed with CPU in 8.66 ms (timesteps 1, resolution 4096).
18.0003182
Computed with CPU in 12.67 ms (timesteps 1, resolution 8192).
18.0003197
Computed with CPU in 20.23 ms (timesteps 1, resolution 16384).
18.0003194
Computed with CPU in 34.58 ms (timesteps 1, resolution 32768).
Lippa (2013), table C.2 p.55
Surkov (2009), table 6.2 p.92
Reference price 7.27993383
7.2866478
Computed with CPU in 15.05 ms (timesteps 1, resolution 2048).
7.28719833
Computed with CPU in 8.44 ms (timesteps 1, resolution 4096).
7.28733893
Computed with CPU in 12.21 ms (timesteps 1, resolution 8192).
7.28737557
Computed with CPU in 19.11 ms (timesteps 1, resolution 16384).
7.28738548
Computed with CPU in 32.50 ms (timesteps 1, resolution 32768).