Source

odeci / erlang / test / timing

Full commit
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

single operations:
==================

0.0.1:
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)
b	1	21	268	30	301 (217)

list operations:
===============
num of lists, list length
lst	items	t	w	g	go	(oe)
100	1000	n	1	11	116	(104)
200	500	n	1	11	68	(55)
400	250	n	1	11	45	(31)
500	200	n	1	11	40	(27)
667	150	n	1	11	37	(21)
800	125	n	1	11	36	(19)
901	111	n	1	11	36	(19)
1000	100	n	1	12	35	(18)
1100	91	n	1	12	34	(18)
1250	80	n	1	12	35	(18)
1493	67	n	1	12	37	(18)
1613	62	n	1	12	37	(17)
1818	55	n	1	12	39	(18)
2000	50	n	1	12	37	(17)
2500	40	n	1	12	36	(16)
3030	33	n	1	12	37	(15)
4000	25	n	1	12	38	(15)
5000	20	n	1	12	38	(14)
10000	10	n	1	12	39	(13)
20000	5	n	1	12	41	(14)
33333	3	n	1	12	46	(18)
50000	2	n	1	12	53	(21)