benchmark on binary trees
visitor via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Dec 8 04:53:44 PST 2015
using Apache Portable Runtime(APR) like in the C version :
works like a charm, 2.061s on my machine !
if file name is binarytrees.d
dmd -w -inline -O -release -I/usr/include/apr-1.0
measured with "time ./binarytrees 20" on command line:
C version gives :
Not bad !!! :-D
Still i would like to know what i'm doing wrong with the
allocator's version, besides the fact that apr tools are doing
more sophisticated work than my naive approach :-D ?
More information about the Digitalmars-d-learn