]> gitweb.factorcode.org Git - factor.git/commitdiff
move benchmarks from work to extra. wtf oops
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 25 Sep 2009 03:58:42 +0000 (22:58 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 25 Sep 2009 03:58:42 +0000 (22:58 -0500)
extra/benchmark/e-decimals/authors.txt [new file with mode: 0644]
extra/benchmark/e-decimals/e-decimals.factor [new file with mode: 0644]
extra/benchmark/e-ratios/authors.txt [new file with mode: 0644]
extra/benchmark/e-ratios/e-ratios.factor [new file with mode: 0644]
work/benchmark/e-decimals/authors.txt [deleted file]
work/benchmark/e-decimals/e-decimals.factor [deleted file]
work/benchmark/e-ratios/authors.txt [deleted file]
work/benchmark/e-ratios/e-ratios.factor [deleted file]

diff --git a/extra/benchmark/e-decimals/authors.txt b/extra/benchmark/e-decimals/authors.txt
new file mode 100644 (file)
index 0000000..b4bd0e7
--- /dev/null
@@ -0,0 +1 @@
+Doug Coleman
\ No newline at end of file
diff --git a/extra/benchmark/e-decimals/e-decimals.factor b/extra/benchmark/e-decimals/e-decimals.factor
new file mode 100644 (file)
index 0000000..d202e5f
--- /dev/null
@@ -0,0 +1,14 @@
+! Copyright (C) 2009 Doug Coleman.
+! See http://factorcode.org/license.txt for BSD license.
+USING: decimals kernel locals math math.combinatorics math.ranges
+sequences ;
+IN: benchmark.e-decimals
+
+:: calculate-e-decimals ( n -- e )
+    n [1,b] [ factorial 0 <decimal> D: 1 swap n D/ ] map
+    D: 1 [ D+ ] reduce ;
+
+: calculate-e-decimals-benchmark ( -- )
+    5 [ 800 calculate-e-decimals drop ] times ;
+
+MAIN: calculate-e-decimals-benchmark
diff --git a/extra/benchmark/e-ratios/authors.txt b/extra/benchmark/e-ratios/authors.txt
new file mode 100644 (file)
index 0000000..b4bd0e7
--- /dev/null
@@ -0,0 +1 @@
+Doug Coleman
\ No newline at end of file
diff --git a/extra/benchmark/e-ratios/e-ratios.factor b/extra/benchmark/e-ratios/e-ratios.factor
new file mode 100644 (file)
index 0000000..4957822
--- /dev/null
@@ -0,0 +1,12 @@
+! Copyright (C) 2009 Doug Coleman.
+! See http://factorcode.org/license.txt for BSD license.
+USING: kernel math math.combinatorics math.ranges sequences ;
+IN: benchmark.e-ratios
+
+: calculate-e-ratios ( n -- e )
+    iota [ factorial recip ] sigma ;
+
+: calculate-e-ratios-benchmark ( -- )
+    5 [ 300 calculate-e-ratios drop ] times ;
+
+MAIN: calculate-e-ratios-benchmark
diff --git a/work/benchmark/e-decimals/authors.txt b/work/benchmark/e-decimals/authors.txt
deleted file mode 100644 (file)
index b4bd0e7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Doug Coleman
\ No newline at end of file
diff --git a/work/benchmark/e-decimals/e-decimals.factor b/work/benchmark/e-decimals/e-decimals.factor
deleted file mode 100644 (file)
index d202e5f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-! Copyright (C) 2009 Doug Coleman.
-! See http://factorcode.org/license.txt for BSD license.
-USING: decimals kernel locals math math.combinatorics math.ranges
-sequences ;
-IN: benchmark.e-decimals
-
-:: calculate-e-decimals ( n -- e )
-    n [1,b] [ factorial 0 <decimal> D: 1 swap n D/ ] map
-    D: 1 [ D+ ] reduce ;
-
-: calculate-e-decimals-benchmark ( -- )
-    5 [ 800 calculate-e-decimals drop ] times ;
-
-MAIN: calculate-e-decimals-benchmark
diff --git a/work/benchmark/e-ratios/authors.txt b/work/benchmark/e-ratios/authors.txt
deleted file mode 100644 (file)
index b4bd0e7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Doug Coleman
\ No newline at end of file
diff --git a/work/benchmark/e-ratios/e-ratios.factor b/work/benchmark/e-ratios/e-ratios.factor
deleted file mode 100644 (file)
index 4957822..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-! Copyright (C) 2009 Doug Coleman.
-! See http://factorcode.org/license.txt for BSD license.
-USING: kernel math math.combinatorics math.ranges sequences ;
-IN: benchmark.e-ratios
-
-: calculate-e-ratios ( n -- e )
-    iota [ factorial recip ] sigma ;
-
-: calculate-e-ratios-benchmark ( -- )
-    5 [ 300 calculate-e-ratios drop ] times ;
-
-MAIN: calculate-e-ratios-benchmark