@Override
    public void run() {
        String serverAddress = SERVER_IP;
        try {
            Socket socket = new Socket(serverAddress, SERVER_PORT);
            InputStream input  = socket.getInputStream();
            OutputStream output = socket.getOutputStream();

            long startDate = System.currentTimeMillis()/1000L;
            for(int i = 0 ; i < iterations ; i++){
                output.write(("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890\n").getBytes());

                byte[] receivedBytes = new byte[BUFFER_SIZE];
                //System.out.println("Waiting read\n");
                int received = input.read(receivedBytes, 0, receivedBytes.length);
                //System.out.println(new String(receivedBytes, "UTF-8"));

            }

            long endDate = System.currentTimeMillis()/1000L;
            long rate = iterations/(endDate - startDate);

            System.out.println("Rate " + rate + "\n");

            Thread.sleep(3000);
            input.close();
            output.close();
            socket.close();

        } catch (IOException e) {
            e.printStackTrace();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }