package net.devops.demo.jni.client;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class JniMain {

    public static void main(String[] args) throws Exception {
        final SinusGeneratorDemo sinusGeneratorDemo = new SinusGeneratorDemo();

        for (int i = 0; i < 10; i++) {
            log.info("loop {}", i);
            sinusGeneratorDemo.testCppSequential();
            sinusGeneratorDemo.testCppOpenMp();
            sinusGeneratorDemo.testJavaMath();
            sinusGeneratorDemo.testJavaFastMath();
            log.info("\n\n\n");

            Thread.sleep(100);
        }
        sinusGeneratorDemo.shutdown();

        final MassiveComputationDemo massiveComputationDemo = new MassiveComputationDemo();
        for (int i = 0; i < 10; i++) {
            log.info("loop {}", i);
            massiveComputationDemo.testCppSequential();
            massiveComputationDemo.testCppOpenMp();
            massiveComputationDemo.testJavaMath();
            massiveComputationDemo.testJavaFastMath();
            log.info("\n\n\n");

            Thread.sleep(100);
        }
        massiveComputationDemo.shutdown();
    }

}

@@ -504,32 +504,33 @@
 JavaFastMath();%0A
+%0A
             log.
@@ -537,33 +537,32 @@
 info(%22%5Cn%5Cn%5Cn%22);%0A
-%0A
             Thre
@@ -565,32 +565,33 @@
 Thread.sleep(100
+0
 );%0A        %7D%0A   
@@ -1000,32 +1000,33 @@
 JavaFastMath();%0A
+%0A
             log.
@@ -1041,17 +1041,16 @@
 %5Cn%5Cn%22);%0A
-%0A
         
@@ -1069,16 +1069,17 @@
 leep(100
+0
 );%0A     

increase sleep time