private void smBenchmarkImpl()

in benchmark/guomi/host/src/main/java/org/apache/teaclave/javasdk/benchmark/guomi/host/GuoMiBenchMark.java [89:119]


    private void smBenchmarkImpl(EnclaveBenchmark enclave, String serviceName, String smAlgo) throws Exception {
        SMService service = null;
        switch (serviceName) {
            case "MOCK_IN_JVM":
                service = enclave.getMockJVMServiceInstance();
                break;
            case "MOCK_IN_SVM":
                service = enclave.getMockSVMServiceInstance();
                break;
            case "TEE_SDK":
                service = enclave.getTeeSDKServiceInstance();
                break;
        }

        int sm2Weight = 10;
        int sm3Weight = 20_000;
        int sm4Weight = 300;
        String sm2Context = "abcd_ed123.t12y@haha.com";
        String sm4Context = "word1, word2 word3@word4?word5.word6";
        switch (smAlgo) {
            case "SM2":
                Objects.requireNonNull(service).sm2Service(sm2Context, sm2Weight);
                break;
            case "SM3":
                Objects.requireNonNull(service).sm3Service(sm3Context, sm3Weight);
                break;
            case "SM4":
                Objects.requireNonNull(service).sm4Service(sm4Context, sm4Weight);
                break;
        }
    }