测试原型模式的效率
package cn.com.prototype;
public class TestPrototypeEfficiency {
public static void testNew(int count) {
long start = System.currentTimeMillis();
for (int i = 0; i < count; i++) {
Laptop computer = new Laptop(