package test.http;

import com.firefly.client.http2.SimpleHTTPClient;
import com.firefly.client.http2.SimpleResponse;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;

/**
 * @author Pengtao Qiu
 */
public class SimpleHTTPClientDemo5 {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        SimpleHTTPClient client = new SimpleHTTPClient();

        for (int j = 0; j < 1000; j++) {
            for (int i = 0; i < 10; i++) {
                long start = System.currentTimeMillis();
                Future<SimpleResponse> future = client.get("http://shoukuan.genshuixue.com/Api/getOrderInfoBatch?_from=1&id=%7B%22purchase_id%22%3A%5B150116111487703960%5D%7D").submit();
//            System.out.println(future.get().getStringBody("GBK"));
                String body = future.get().getStringBody("GBK");
                long end = System.currentTimeMillis();
                System.out.println("time: " + (end - start));
            }
            Thread.sleep(5000L);
        }

        client.stop();
    }
}

@@ -629,115 +629,21 @@
 p://
-shoukuan.genshuixue.com/Api/getOrderInfoBatch?_from=1&id=%257B%2522purchase_id%2522%253A%255B150116111487703960%255D%257D
+www.baidu.com
 %22).s

Update SimpleHTTPClientDemo5.java