-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtimes.txt
More file actions
48 lines (31 loc) · 871 Bytes
/
times.txt
File metadata and controls
48 lines (31 loc) · 871 Bytes
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
1. F# version without Parallel:
real 0m22.180s
user 0m22.253s
sys 0m0.116s
2. F# version with Parallel: (top shows 340% CPU usage)
real 0m16.400s
user 0m47.135s
sys 0m0.240s
3. OCaml (without parmap):
compiled with:
ocamlopt str.cmxa -o classifyDigits classifyDigits.ml
real 0m47.567s
user 0m47.343s
sys 0m0.104s
4. OCaml with parmap:
compiled with:
ocamlfind ocamlopt -linkpkg -o classifyDigitsPar -package parmap -package str classifyDigitsPar.ml
real 1m43.140s
user 5m38.809s
sys 0m42.811s
5. OCaml with Array instead of List (classifyDigitsArray):
real 0m10.706s
user 0m10.640s
sys 0m0.056s
6. C++ version:
compiled with:
g++ -o classifyDigits classifyDigits.cpp -std=c++1z -O3
real 0m5.265s
user 0m5.260s
sys 0m0.000s
compiled with: clang++-5.0 -o classifyDigits classifyDigits.cpp -std=c++1z -O3