Java Map的测试

主要是为了选择快速的Map类库,系统自带的貌似很慢

测试代码

import java.util.Collections;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ConcurrentHashMap;
import javolution.util.FastMap;
import org.junit.Test;
import com.alisoft.nano.bench.Nano;
public class MapBenchTest {
    private static int measurements = 100000 ...
more ...