    @Test
    public void speedTest() throws Exception {

        Komoran komoran = new Komoran(DEFAULT_MODEL.STABLE);
        int totalTestCount = 10;
        int totalElapsedTime = 0;
        int step = 0;
        while (true) {
            InputStreamReader inputStreamReader = new InputStreamReader(Objects.requireNonNull(getClass().getClassLoader().getResourceAsStream("stress.test")), StandardCharsets.UTF_8);
            BufferedReader br = new BufferedReader(inputStreamReader);
            String line;
            long begin, end;
            long elapsedTime = 0L;
            while ((line = br.readLine()) != null) {
                begin = System.currentTimeMillis();
                komoran.analyze(line);
                end = System.currentTimeMillis();

                elapsedTime += (end - begin);

            }
            br.close();
            System.out.println("Step " + step + " : " + elapsedTime);
            //skip first step
            if (step == 0) {
                elapsedTime = 0;
            }
            totalElapsedTime += elapsedTime;
            step++;
            if (step == totalTestCount + 1) break;
        }
        System.out.println("Avg. ElapsedTime : " + totalElapsedTime / totalTestCount);
    }