@@ -42,7 +42,7 @@ public class GuoMiBenchMark {
4242
4343 public final String sm3Context = "Hello World!" ;
4444
45- @ Param (value = {"MOCK_IN_JVM" , "MOCK_IN_SVM" , "TEE_SDK" , "EMBEDDED_LIB_OS" })
45+ @ Param (value = {"MOCK_IN_JVM" , "MOCK_IN_SVM" , "TEE_SDK" })
4646 private String enclaveServiceInstance ;
4747 @ Param (value = {"SM2" , "SM3" , "SM4" })
4848 private String smAlgo ;
@@ -55,8 +55,6 @@ public static class EnclaveBenchmark {
5555 private SMService mockSVMService = null ;
5656 private Enclave teeSDKEnclave = null ;
5757 private SMService teeSDKService = null ;
58- private Enclave embeddedLibOSEnclave = null ;
59- private SMService embeddedLibOSService = null ;
6058
6159 @ Setup
6260 public void createEnclave () throws Exception {
@@ -66,16 +64,13 @@ public void createEnclave() throws Exception {
6664 mockSVMService = mockSVMEnclave .load (SMService .class ).next ();
6765 teeSDKEnclave = EnclaveFactory .create (EnclaveType .TEE_SDK );
6866 teeSDKService = teeSDKEnclave .load (SMService .class ).next ();
69- embeddedLibOSEnclave = EnclaveFactory .create (EnclaveType .EMBEDDED_LIB_OS );
70- embeddedLibOSService = embeddedLibOSEnclave .load (SMService .class ).next ();
7167 }
7268
7369 @ TearDown
7470 public void destroyEnclave () throws Exception {
7571 mockJVMEnclave .destroy ();
7672 mockSVMEnclave .destroy ();
7773 teeSDKEnclave .destroy ();
78- embeddedLibOSEnclave .destroy ();
7974 }
8075
8176 public SMService getMockJVMServiceInstance () {
@@ -89,10 +84,6 @@ public SMService getMockSVMServiceInstance() {
8984 public SMService getTeeSDKServiceInstance () {
9085 return teeSDKService ;
9186 }
92-
93- public SMService getEmbeddedLibOSServiceInstance () {
94- return embeddedLibOSService ;
95- }
9687 }
9788
9889 private void smBenchmarkImpl (EnclaveBenchmark enclave , String serviceName , String smAlgo ) throws Exception {
@@ -107,9 +98,6 @@ private void smBenchmarkImpl(EnclaveBenchmark enclave, String serviceName, Strin
10798 case "TEE_SDK" :
10899 service = enclave .getTeeSDKServiceInstance ();
109100 break ;
110- case "EMBEDDED_LIB_OS" :
111- service = enclave .getEmbeddedLibOSServiceInstance ();
112- break ;
113101 }
114102
115103 int sm2Weight = 10 ;
0 commit comments