import java.util.Base64;
import static java.lang.System.out;
import static java.nio.charset.StandardCharsets.ISO_8859_1;

class Base64Java {

    final static int STR_SIZE = 10000000;
    final static int TRIES = 100;

    final static Base64.Decoder dec = Base64.getDecoder();
    final static Base64.Encoder enc = Base64.getEncoder();

    public static void main(String[] args){

        StringBuilder sb = new StringBuilder("");
        for (int i = 0 ; i < STR_SIZE ; i++) {
            sb.append("a");
        }
        String str = sb.toString();
        String str2 = "";
        String str3;

        int s = 0;
        Long t = System.nanoTime();
        for (int i = 0 ; i < TRIES ; i++) {
            str2 = enc.encodeToString(str.getBytes(ISO_8859_1));
            s += str2.length();
        }
        out.println("encode: " + s + ", " + (System.nanoTime() - t)/1e9);

        s = 0;
        t = System.nanoTime();
        for (int i = 0 ; i < TRIES ; i++) {
            byte[] b_arr = dec.decode(str2.getBytes(ISO_8859_1));
            str3 = new String(b_arr, ISO_8859_1);
            s += str3.length();
        }
        out.println("decode: " + s + ", " + (System.nanoTime() - t)/1e9);
    }
}

@@ -595,16 +595,184 @@
  str3;%0A%0A
+        // cheat - JIT warming-up  - 0,5-1sec%0A        for (int i = 0 ; i %3C TRIES ; i++) %7B%0A            enc.encodeToString(str.getBytes(ISO_8859_1)).length();%0A        %7D%0A%0A
         
@@ -1040,24 +1040,176 @@
 - t)/1e9);%0A%0A
+        // cheat - JIT warming-up  - 0-0,3sec%0A        for (int i = 0 ; i %3C TRIES ; i++) %7B%0A            dec.decode(str2.getBytes(ISO_8859_1));%0A        %7D%0A%0A
         s = 

Revert "jit-warming-up removed"