# HG changeset patch
# User one
# Date 1417834821 -32400
# Node ID 047bbe8940058ede056e7e2c82b110a1fd100f22
# Parent 7c544969d4c906888381326265a3a6f36f778c0a
add TreeMapTime
diff -r 7c544969d4c9 -r 047bbe894005 pom.xml
--- a/pom.xml Wed Nov 26 13:00:26 2014 +0900
+++ b/pom.xml Sat Dec 06 12:00:21 2014 +0900
@@ -1,33 +1,35 @@
-
- 4.0.0
- jungle-bench
- jungle-bench
- 0.0.1-SNAPSHOT
-
- src/main/java
- src/test/java
-
-
- maven-compiler-plugin
- 2.3.2
-
-
- 1.7
-
-
-
-
-
+
+ 4.0.0
+ jungle-bench
+ jungle-bench
+ 0.0.1-SNAPSHOT
+
+ src/main/java
+ src/test/java
+
+
+ maven-compiler-plugin
+ 2.3.2
+
+
+ 1.7
+
+
+
+
+
-
- jungle
- jungle-core
- 0.0.3-SNAPSHOT
-
-
- junit
- junit
- 4.7
-
-
+
+ org.functionaljava
+ functionaljava
+ 4.1
+
+
+
+ junit
+ junit
+ 4.7
+
+
\ No newline at end of file
diff -r 7c544969d4c9 -r 047bbe894005 src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/xml/FJTreeMapSetTime.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/xml/FJTreeMapSetTime.java Sat Dec 06 12:00:21 2014 +0900
@@ -0,0 +1,30 @@
+package jp.ac.u_ryukyu.ie.cr.tatsuki.xml;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import fj.Ord;
+import fj.data.TreeMap;
+
+public class FJTreeMapSetTime {
+ public static void main(String args[]) throws IOException {
+ File file = new File("./time/newfj41");
+ PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(file)));
+ TreeMap map = TreeMap.empty(Ord.intOrd);
+ long t1 = 0;
+ long t2 = 0;
+ for (int count = 0; count <= 30000; count++) {
+ t1 = System.currentTimeMillis();
+ map = map.set(count, count);
+ t2 = System.currentTimeMillis();
+ if (count % 100 == 0) {
+ System.out.println("put time " + count + " " + (t2 - t1));
+ pw.println(count + " " + (t2 - t1));
+ }
+ }
+ pw.close();
+ }
+}
diff -r 7c544969d4c9 -r 047bbe894005 src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/xml/UntilTreeMapPutTime.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/xml/UntilTreeMapPutTime.java Sat Dec 06 12:00:21 2014 +0900
@@ -0,0 +1,26 @@
+package jp.ac.u_ryukyu.ie.cr.tatsuki.xml;
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.TreeMap;
+
+
+public class UntilTreeMapPutTime {
+
+ public static void main(String args[]) throws IOException {
+ File file = new File("./time/until");
+ PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(file)));
+ TreeMap map = new TreeMap();
+ for (int count = 0; count <= 48800; count++) {
+ long t1 = System.currentTimeMillis();
+ map.put(count, count);
+ long t2 = System.currentTimeMillis();
+ System.out.println("put time " + count + " " + (t2 - t1));
+ pw.println(count + " " + (t2 - t1));
+ }
+ pw.close();
+ }
+}