forked from davidsantiago/clojure-csv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bench.clj.txt
79 lines (71 loc) · 2.38 KB
/
bench.clj.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
;; All commands are run twice, second run shown.
(def csvfile (slurp "/Users/David/Downloads/cbp02st.txt"))
(dotimes [_ 10] (time (dorun 50000 (parse-csv csvfile))))
;;; Results from clojure-csv 1.2.4 (Clojure 1.2)
"Elapsed time: 12245.029 msecs"
"Elapsed time: 12857.944 msecs"
"Elapsed time: 9884.861 msecs"
"Elapsed time: 9775.208 msecs"
"Elapsed time: 9949.54 msecs"
"Elapsed time: 10030.859 msecs"
"Elapsed time: 10105.303 msecs"
"Elapsed time: 11122.508 msecs"
"Elapsed time: 12247.907 msecs"
"Elapsed time: 10413.019 msecs"
;;; Results from clojure-csv 1.3.0-SNAPSHOT (Clojure 1.3.0-beta1)
"Elapsed time: 6409.858 msecs"
"Elapsed time: 6405.123 msecs"
"Elapsed time: 6368.294 msecs"
"Elapsed time: 6130.952 msecs"
"Elapsed time: 6198.849 msecs"
"Elapsed time: 6054.034 msecs"
"Elapsed time: 5997.058 msecs"
"Elapsed time: 6023.086 msecs"
"Elapsed time: 5925.056 msecs"
"Elapsed time: 5943.415 msecs"
;;; Results from clojure-csv 2.0.0-alpha1 (Clojure 1.3.0)
"Elapsed time: 725.3 msecs"
"Elapsed time: 653.785 msecs"
"Elapsed time: 658.026 msecs"
"Elapsed time: 669.622 msecs"
"Elapsed time: 650.866 msecs"
"Elapsed time: 655.19 msecs"
"Elapsed time: 652.416 msecs"
"Elapsed time: 686.332 msecs"
"Elapsed time: 655.465 msecs"
"Elapsed time: 651.724 msecs"
(def cbp02 (doall (take 5000 (parse-csv csvfile))))
(dotimes [_ 10] (time (doall (write-csv cbp02))))
;;; Results from clojure-csv 1.2.4 (Clojure 1.2)
"Elapsed time: 679.032 msecs"
"Elapsed time: 1055.923 msecs"
"Elapsed time: 799.002 msecs"
"Elapsed time: 801.592 msecs"
"Elapsed time: 743.991 msecs"
"Elapsed time: 871.658 msecs"
"Elapsed time: 724.909 msecs"
"Elapsed time: 851.222 msecs"
"Elapsed time: 747.055 msecs"
"Elapsed time: 759.579 msecs"
;;; Results from clojure-csv 1.3.0-SNAPSHOT (Clojure 1.3.0-beta1)
"Elapsed time: 253.029 msecs"
"Elapsed time: 315.611 msecs"
"Elapsed time: 396.087 msecs"
"Elapsed time: 404.51 msecs"
"Elapsed time: 401.931 msecs"
"Elapsed time: 458.675 msecs"
"Elapsed time: 414.312 msecs"
"Elapsed time: 377.439 msecs"
"Elapsed time: 362.493 msecs"
"Elapsed time: 386.491 msecs"
;;; Results from clojure-csv 2.0.0-alpha1 (Clojure 1.3.0)
"Elapsed time: 63.865 msecs"
"Elapsed time: 63.538 msecs"
"Elapsed time: 58.148 msecs"
"Elapsed time: 58.851 msecs"
"Elapsed time: 61.203 msecs"
"Elapsed time: 58.077 msecs"
"Elapsed time: 56.727 msecs"
"Elapsed time: 58.531 msecs"
"Elapsed time: 58.205 msecs"
"Elapsed time: 58.485 msecs"