同状態暗号化ライブラリHEAAN効率テスト(2)


wbq@wbq-virtual-machine:~/HEAAN/HEAAN/run$ ./TestHEAAN iMult
!!! START TEST i MULTIPLICATION !!!
------------------
Start Multiplication by i
Multiplication by i time = 70.373 ms
------------------
---------------------
mimult: 0 :(-0.0400071,0.0493687)
dimult: 0 :(-0.0400071,0.0493687)
eimult: 0 :(-8.62346e-09,-1.57461e-08)
---------------------
---------------------
mimult: 1 :(-0.575452,0.981665)
dimult: 1 :(-0.575452,0.981665)
eimult: 1 :(9.81634e-09,-1.84497e-09)
---------------------
---------------------
mimult: 2 :(-0.158327,0.74963)
dimult: 2 :(-0.158327,0.74963)
eimult: 2 :(5.81742e-09,-1.02355e-08)
---------------------
---------------------
mimult: 3 :(-0.685963,0.716644)
dimult: 3 :(-0.685963,0.716644)
eimult: 3 :(-8.08972e-09,1.08143e-08)
---------------------
---------------------
mimult: 4 :(-0.386076,0.108222)
dimult: 4 :(-0.386076,0.108222)
eimult: 4 :(-1.43027e-08,-1.07971e-08)
---------------------
---------------------
mimult: 5 :(-0.490087,0.0884983)
dimult: 5 :(-0.490087,0.0884983)
eimult: 5 :(-3.43883e-09,8.0279e-09)
---------------------
---------------------
mimult: 6 :(-0.743746,0.178268)
dimult: 6 :(-0.743746,0.178268)
eimult: 6 :(4.3461e-09,-1.53642e-08)
---------------------
---------------------
mimult: 7 :(-0.464018,0.948917)
dimult: 7 :(-0.464018,0.948917)
eimult: 7 :(7.06263e-10,-1.23208e-08)
---------------------
---------------------
mimult: 8 :(-0.364376,0.3948)
dimult: 8 :(-0.364376,0.3948)
eimult: 8 :(-1.36208e-09,1.41998e-08)
---------------------
---------------------
mimult: 9 :(-0.702896,0.869776)
dimult: 9 :(-0.702896,0.869776)
eimult: 9 :(9.33804e-09,8.60139e-09)
---------------------
---------------------
mimult: 10 :(-0.970916,0.066696)
dimult: 10 :(-0.970916,0.066696)
eimult: 10 :(-1.12122e-08,-2.32506e-09)
---------------------
---------------------
mimult: 11 :(-0.286441,0.216049)
dimult: 11 :(-0.286441,0.216049)
eimult: 11 :(1.20374e-09,1.36702e-09)
---------------------
---------------------
mimult: 12 :(-0.526915,0.0566568)
dimult: 12 :(-0.526915,0.0566568)
eimult: 12 :(-3.91483e-09,-1.47771e-08)
---------------------
---------------------
mimult: 13 :(-0.173857,0.249659)
dimult: 13 :(-0.173857,0.249659)
eimult: 13 :(1.59235e-08,8.19499e-09)
---------------------
---------------------
mimult: 14 :(-0.677953,0.917274)
dimult: 14 :(-0.677953,0.917274)
eimult: 14 :(-1.26985e-08,7.13344e-09)
---------------------
---------------------
mimult: 15 :(-0.966642,0.945709)
dimult: 15 :(-0.966642,0.945709)
eimult: 15 :(-9.27832e-09,1.37822e-09)
---------------------
---------------------
mimult: 16 :(-0.927374,0.71796)
dimult: 16 :(-0.927374,0.71796)
eimult: 16 :(4.33136e-09,2.18165e-08)
---------------------
---------------------
mimult: 17 :(-0.46759,0.542094)
dimult: 17 :(-0.46759,0.542094)
eimult: 17 :(8.26857e-09,4.57566e-09)
---------------------
---------------------
mimult: 18 :(-0.258739,0.0857007)
dimult: 18 :(-0.258739,0.0857007)
eimult: 18 :(3.41813e-09,-1.31512e-08)
---------------------
---------------------
mimult: 19 :(-0.193922,0.153553)
dimult: 19 :(-0.193922,0.153553)
eimult: 19 :(1.57404e-09,2.05955e-09)
---------------------
---------------------
mimult: 20 :(-0.242051,0.644815)
dimult: 20 :(-0.242051,0.644815)
eimult: 20 :(1.23382e-09,-1.63779e-08)
---------------------
---------------------
mimult: 21 :(-0.823082,0.68401)
dimult: 21 :(-0.823082,0.68401)
eimult: 21 :(3.38723e-09,-3.12917e-09)
---------------------
---------------------
mimult: 22 :(-0.632926,0.985797)
dimult: 22 :(-0.632926,0.985797)
eimult: 22 :(1.2264e-08,1.62312e-08)
---------------------
---------------------
mimult: 23 :(-0.380597,0.2871)
dimult: 23 :(-0.380597,0.2871)
eimult: 23 :(2.11387e-09,-1.41172e-08)
---------------------
---------------------
mimult: 24 :(-0.156876,0.997303)
dimult: 24 :(-0.156876,0.997303)
eimult: 24 :(1.65458e-08,2.05987e-08)
---------------------
---------------------
mimult: 25 :(-0.0639986,0.0834927)
dimult: 25 :(-0.0639986,0.0834927)
eimult: 25 :(1.75535e-08,1.66952e-08)
---------------------
---------------------
mimult: 26 :(-0.299542,0.127792)
dimult: 26 :(-0.299542,0.127792)
eimult: 26 :(1.72742e-08,-2.05903e-09)
---------------------
---------------------
mimult: 27 :(-0.184449,0.35044)
dimult: 27 :(-0.184449,0.35044)
eimult: 27 :(1.92267e-08,-1.99973e-08)
---------------------
---------------------
mimult: 28 :(-0.600099,0.826457)
dimult: 28 :(-0.600099,0.826457)
eimult: 28 :(1.8944e-08,-1.50077e-08)
---------------------
---------------------
mimult: 29 :(-0.74373,0.358305)
dimult: 29 :(-0.74373,0.358305)
eimult: 29 :(-1.32565e-08,2.20587e-08)
---------------------
---------------------
mimult: 30 :(-0.304014,0.278052)
dimult: 30 :(-0.304014,0.278052)
eimult: 30 :(-2.39709e-08,-1.60798e-08)
---------------------
---------------------
mimult: 31 :(-0.996011,0.710373)
dimult: 31 :(-0.996011,0.710373)
eimult: 31 :(-5.15845e-09,-1.88996e-08)
---------------------
!!! END TEST i MULTIPLICATION !!!
      
wbq@wbq-virtual-machine:~/HEAAN/HEAAN/run$ ./TestHEAAN RotateFast
!!! START TEST ROTATE FAST !!!
------------------
Start Left Rotate Fast
Left Rotate Fast time = 5500.99 ms
------------------
---------------------
mrot: 0 :(0.713588,0.426562)
drot: 0 :(0.713587,0.426563)
erot: 0 :(1.30451e-06,-6.07894e-07)
---------------------
---------------------
mrot: 1 :(0.758178,0.81255)
drot: 1 :(0.758176,0.812543)
erot: 1 :(1.77466e-06,6.787e-06)
---------------------
---------------------
mrot: 2 :(0.107043,0.0905388)
drot: 2 :(0.107042,0.0905385)
erot: 2 :(1.62837e-06,3.39309e-07)
---------------------
---------------------
mrot: 3 :(0.466695,0.663246)
drot: 3 :(0.466695,0.663246)
erot: 3 :(-6.62942e-08,-4.76682e-07)
---------------------
---------------------
mrot: 4 :(0.749176,0.472512)
drot: 4 :(0.749177,0.472513)
erot: 4 :(-1.28171e-06,-3.26141e-07)
---------------------
---------------------
mrot: 5 :(0.797248,0.526413)
drot: 5 :(0.797247,0.526415)
erot: 5 :(8.3487e-07,-1.59694e-06)
---------------------
---------------------
mrot: 6 :(0.0677368,0.428373)
drot: 6 :(0.0677374,0.428375)
erot: 6 :(-6.67229e-07,-1.78062e-06)
---------------------
---------------------
mrot: 7 :(0.560831,0.814425)
drot: 7 :(0.560831,0.814424)
erot: 7 :(-1.21898e-07,1.31149e-06)
---------------------
---------------------
mrot: 8 :(0.62804,0.265176)
drot: 8 :(0.628041,0.265175)
erot: 8 :(-4.74764e-07,8.93844e-07)
---------------------
---------------------
mrot: 9 :(0.994282,0.360542)
drot: 9 :(0.994282,0.360542)
erot: 9 :(6.19126e-08,-1.37593e-07)
---------------------
---------------------
mrot: 10 :(0.978088,0.879099)
drot: 10 :(0.978088,0.8791)
erot: 10 :(-1.30781e-07,-8.76246e-07)
---------------------
---------------------
mrot: 11 :(0.655034,0.457016)
drot: 11 :(0.655035,0.457016)
erot: 11 :(-6.77747e-07,-1.93934e-07)
---------------------
---------------------
mrot: 12 :(0.96471,0.616399)
drot: 12 :(0.96471,0.6164)
erot: 12 :(-2.2741e-08,-2.19986e-07)
---------------------
---------------------
mrot: 13 :(0.267333,0.473627)
drot: 13 :(0.267332,0.473626)
erot: 13 :(1.90895e-07,8.43826e-07)
---------------------
---------------------
mrot: 14 :(0.354927,0.0242382)
drot: 14 :(0.354926,0.0242394)
erot: 14 :(1.16279e-06,-1.13762e-06)
---------------------
---------------------
mrot: 15 :(0.591267,0.0685151)
drot: 15 :(0.591266,0.0685151)
erot: 15 :(1.00303e-06,2.25461e-08)
---------------------
---------------------
mrot: 16 :(0.4508,0.349445)
drot: 16 :(0.450802,0.349445)
erot: 16 :(-1.36215e-06,1.5454e-07)
---------------------
---------------------
mrot: 17 :(0.881065,0.557844)
drot: 17 :(0.881067,0.557843)
erot: 17 :(-1.81172e-06,5.69195e-07)
---------------------
---------------------
mrot: 18 :(0.439984,0.34776)
drot: 18 :(0.439985,0.347761)
erot: 18 :(-9.4793e-07,-5.67902e-07)
---------------------
---------------------
mrot: 19 :(0.221089,0.18916)
drot: 19 :(0.221088,0.18916)
erot: 19 :(1.03377e-06,8.59781e-08)
---------------------
---------------------
mrot: 20 :(0.820273,0.0183375)
drot: 20 :(0.820273,0.0183382)
erot: 20 :(-8.7131e-08,-7.29521e-07)
---------------------
---------------------
mrot: 21 :(0.715573,0.888009)
drot: 21 :(0.715573,0.888008)
erot: 21 :(2.10515e-07,1.03209e-06)
---------------------
---------------------
mrot: 22 :(0.446711,0.276404)
drot: 22 :(0.446711,0.276405)
erot: 22 :(4.18935e-08,-3.45862e-07)
---------------------
---------------------
mrot: 23 :(0.702435,0.0747508)
drot: 23 :(0.702436,0.0747511)
erot: 23 :(-1.38341e-06,-2.18409e-07)
---------------------
---------------------
mrot: 24 :(0.54158,0.696717)
drot: 24 :(0.541579,0.696716)
erot: 24 :(1.18874e-06,1.07897e-06)
---------------------
---------------------
mrot: 25 :(0.435293,0.519668)
drot: 25 :(0.435292,0.519668)
erot: 25 :(1.09201e-06,2.56179e-07)
---------------------
---------------------
mrot: 26 :(0.575816,0.0903266)
drot: 26 :(0.575817,0.090325)
erot: 26 :(-1.08465e-06,1.5484e-06)
---------------------
---------------------
mrot: 27 :(0.976685,0.540525)
drot: 27 :(0.976686,0.540527)
erot: 27 :(-1.73537e-06,-1.40849e-06)
---------------------
---------------------
mrot: 28 :(0.706726,0.244017)
drot: 28 :(0.706727,0.244017)
erot: 28 :(-6.53025e-07,-5.90885e-09)
---------------------
---------------------
mrot: 29 :(0.014152,0.0616529)
drot: 29 :(0.0141523,0.0616523)
erot: 29 :(-3.45893e-07,6.25148e-07)
---------------------
---------------------
mrot: 30 :(0.508917,0.738528)
drot: 30 :(0.508913,0.738511)
erot: 30 :(4.67735e-06,1.63536e-05)
---------------------
---------------------
mrot: 31 :(0.756906,0.11764)
drot: 31 :(0.756906,0.11764)
erot: 31 :(-3.25553e-07,9.26163e-07)
---------------------
!!! END TEST ROTATE BY POWER OF 2 BATCH !!!
wbq@wbq-virtual-machine:~/HEAAN/HEAAN/run$ ./TestHEAAN Conjugate
!!! START TEST CONJUGATE !!!
------------------
Start Conjugate
Conjugate time = 3255.11 ms
------------------
---------------------
mconj: 0 :(0.866232,-0.0747314)
dconj: 0 :(0.866235,-0.0747213)
econj: 0 :(-2.67837e-06,-1.01161e-05)
---------------------
---------------------
mconj: 1 :(0.623052,-0.581294)
dconj: 1 :(0.623053,-0.581296)
econj: 1 :(-1.17952e-06,1.71762e-06)
---------------------
---------------------
mconj: 2 :(0.298034,-0.834623)
dconj: 2 :(0.298033,-0.834623)
econj: 2 :(1.05179e-06,-1.2435e-07)
---------------------
---------------------
mconj: 3 :(0.221248,-0.635824)
dconj: 3 :(0.221246,-0.635825)
econj: 3 :(1.13858e-06,1.16733e-06)
---------------------
---------------------
mconj: 4 :(0.27944,-0.421487)
dconj: 4 :(0.27944,-0.421489)
econj: 4 :(4.59319e-07,2.02409e-06)
---------------------
---------------------
mconj: 5 :(0.803652,-0.582338)
dconj: 5 :(0.803651,-0.582339)
econj: 5 :(9.62319e-07,1.36059e-06)
---------------------
---------------------
mconj: 6 :(0.990811,-0.653092)
dconj: 6 :(0.990807,-0.653093)
econj: 6 :(3.62273e-06,6.19791e-07)
---------------------
---------------------
mconj: 7 :(0.543075,-0.707092)
dconj: 7 :(0.543076,-0.707094)
econj: 7 :(-4.49245e-07,2.52537e-06)
---------------------
---------------------
mconj: 8 :(0.986436,-0.980645)
dconj: 8 :(0.986434,-0.980645)
econj: 8 :(2.43511e-06,3.22217e-07)
---------------------
---------------------
mconj: 9 :(0.595502,-0.359928)
dconj: 9 :(0.595501,-0.359928)
econj: 9 :(1.22649e-06,2.74426e-07)
---------------------
---------------------
mconj: 10 :(0.053198,-0.840599)
dconj: 10 :(0.053196,-0.840601)
econj: 10 :(1.91298e-06,1.71295e-06)
---------------------
---------------------
mconj: 11 :(0.6736,-0.980011)
dconj: 11 :(0.673601,-0.98001)
econj: 11 :(-1.33169e-06,-1.3069e-06)
---------------------
---------------------
mconj: 12 :(0.169166,-0.621863)
dconj: 12 :(0.169166,-0.621863)
econj: 12 :(9.87892e-08,-3.05531e-07)
---------------------
---------------------
mconj: 13 :(0.0558393,-0.720446)
dconj: 13 :(0.0558403,-0.720445)
econj: 13 :(-1.01257e-06,-3.44079e-07)
---------------------
---------------------
mconj: 14 :(0.0177003,-0.805536)
dconj: 14 :(0.017701,-0.805537)
econj: 14 :(-7.09093e-07,8.27756e-07)
---------------------
---------------------
mconj: 15 :(0.394005,-0.883932)
dconj: 15 :(0.394003,-0.883931)
econj: 15 :(1.57251e-06,-1.1646e-06)
---------------------
---------------------
mconj: 16 :(0.880268,-0.0170564)
dconj: 16 :(0.880267,-0.0170558)
econj: 16 :(4.68652e-08,-5.90177e-07)
---------------------
---------------------
mconj: 17 :(0.465226,-0.178302)
dconj: 17 :(0.465226,-0.178303)
econj: 17 :(7.23103e-08,7.17303e-07)
---------------------
---------------------
mconj: 18 :(0.851679,-0.686474)
dconj: 18 :(0.851678,-0.686476)
econj: 18 :(1.49943e-06,2.13988e-06)
---------------------
---------------------
mconj: 19 :(0.814126,-0.13112)
dconj: 19 :(0.814127,-0.13112)
econj: 19 :(-1.29039e-06,9.01396e-08)
---------------------
---------------------
mconj: 20 :(0.10796,-0.617778)
dconj: 20 :(0.107963,-0.617778)
econj: 20 :(-2.75573e-06,1.61042e-07)
---------------------
---------------------
mconj: 21 :(0.713457,-0.0987711)
dconj: 21 :(0.713457,-0.098773)
econj: 21 :(1.02987e-07,1.95551e-06)
---------------------
---------------------
mconj: 22 :(0.27087,-0.256532)
dconj: 22 :(0.270872,-0.256533)
econj: 22 :(-2.38428e-06,1.05847e-06)
---------------------
---------------------
mconj: 23 :(0.805863,-0.257306)
dconj: 23 :(0.805863,-0.257308)
econj: 23 :(-2.16831e-07,2.11024e-06)
---------------------
---------------------
mconj: 24 :(0.237177,-0.401365)
dconj: 24 :(0.237176,-0.401367)
econj: 24 :(1.28094e-06,2.50802e-06)
---------------------
---------------------
mconj: 25 :(0.617234,-0.290375)
dconj: 25 :(0.617235,-0.290376)
econj: 25 :(-2.9826e-07,1.50495e-07)
---------------------
---------------------
mconj: 26 :(0.241964,-0.290834)
dconj: 26 :(0.241966,-0.290836)
econj: 26 :(-2.08566e-06,1.62052e-06)
---------------------
---------------------
mconj: 27 :(0.270386,-0.41113)
dconj: 27 :(0.270385,-0.411132)
econj: 27 :(9.76612e-07,1.80338e-06)
---------------------
---------------------
mconj: 28 :(0.912697,-0.326226)
dconj: 28 :(0.912696,-0.326226)
econj: 28 :(1.7436e-06,7.35388e-07)
---------------------
---------------------
mconj: 29 :(0.131576,-0.930398)
dconj: 29 :(0.131574,-0.930398)
econj: 29 :(1.30635e-06,1.02355e-07)
---------------------
---------------------
mconj: 30 :(0.131762,-0.525581)
dconj: 30 :(0.131764,-0.52558)
econj: 30 :(-2.31108e-06,-3.96806e-07)
---------------------
---------------------
mconj: 31 :(0.81433,-0.0120293)
dconj: 31 :(0.814333,-0.0120301)
econj: 31 :(-2.60033e-06,7.7873e-07)
---------------------
!!! END TEST CONJUGATE !!!
wbq@wbq-virtual-machine:~/HEAAN/HEAAN/run$ ./TestHEAAN Bootstrapping
!!! START TEST BOOTSTRAP !!!
------------------
Start Key generating
Key generated time = 201001 ms
------------------
cipher logq before: 40
------------------
Start SubSum
SubSum time = 100945 ms
------------------
------------------
Start CoeffToSlot
CoeffToSlot time = 115231 ms
------------------
------------------
Start EvalExp
EvalExp time = 353305 ms
------------------
------------------
Start SlotToCoeff
SlotToCoeff time = 74889.9 ms
------------------
cipher logq after: 560
---------------------
mboot: 0 :(0.149731,0.139357)
dboot: 0 :(0.149731,0.139365)
eboot: 0 :(6.21964e-08,-7.72465e-06)
---------------------
---------------------
mboot: 1 :(0.422446,0.939659)
dboot: 1 :(0.42244,0.939658)
eboot: 1 :(6.11954e-06,9.81482e-07)
---------------------
---------------------
mboot: 2 :(0.785542,0.923963)
dboot: 2 :(0.785545,0.92396)
eboot: 2 :(-3.19297e-06,2.11095e-06)
---------------------
---------------------
mboot: 3 :(0.546983,0.258945)
dboot: 3 :(0.546985,0.258946)
eboot: 3 :(-1.4548e-06,-8.212e-07)
---------------------
---------------------
mboot: 4 :(0.314653,0.764036)
dboot: 4 :(0.314657,0.764024)
eboot: 4 :(-4.33541e-06,1.18184e-05)
---------------------
---------------------
mboot: 5 :(0.143137,0.431408)
dboot: 5 :(0.14314,0.431408)
eboot: 5 :(-2.03079e-06,9.25921e-07)
---------------------
---------------------
mboot: 6 :(0.384937,0.254519)
dboot: 6 :(0.384939,0.254515)
eboot: 6 :(-2.26888e-06,3.92079e-06)
---------------------
---------------------
mboot: 7 :(0.377028,0.327527)
dboot: 7 :(0.377027,0.327529)
eboot: 7 :(6.60606e-07,-1.97764e-06)
---------------------
!!! END TEST BOOTSRTAP !!!