Commits

arkdro  committed d549824

test native program

  • Participants
  • Parent commits c8147e3
  • Tags 0.0.2

Comments (0)

Files changed (2)

File erlang/test/test.config

 
 {verbose, 0}.
 %% {odeci_node, 't2@localhost.localdomain'}.
-{odeci_prog, 't1.sh'}. %% relative to priv/
+%{odeci_prog, 't1.sh'}. %% relative to priv/
+%{odeci_prog, 'odec_port.byte'}. %% relative to priv/
+{odeci_prog, 'odec_port.native'}. %% relative to priv/
 
 {warm_up_time, 1000}. %% time between odeci_prog start and tests
-{length, 10000}. %% length of test sequence
+{length, 100000}. %% length of test sequence
 
 %% random sign for decimals
 {random_sign, true}.

File erlang/test/timing

 core i3, 2.1 GHz, 1 thread
+
+count: 10000 numbers
+
 w - warm up
 g - generate
 go - generate, ocaml
 gd - generate, decimal
 god - generate, ocaml, decimal
 godc - generate, ocaml, decimal, compare
+oe - outside of erlang. Means use of ocaml
+t - byte compiled or native
 
 0.0.1:
-w	g	go	gd	god	godc
-1	6	30		33	33
-1	6	31	6	34	34
-1	6	31	7	33	33
+t	w	g	go	gd	god	godc
+b	1	6	30		33	33
+b	1	6	31	6	34	34
+b	1	6	31	7	33	33
+
+0.0.2:
+t	w	oe	godc
+b	1	21	33
+b	1	22	34
+b	1	22	34
+n	1	4.5	16
+
+count=100k
+t	w	g	go	gd	godc(oe)
+n	1	22	108	30	131 (47)