lodo1995 / experimental.xml

A replacement of Phobos std.xml
https://lodo1995.github.io/experimental.xml
Boost Software License 1.0
20 stars 8 forks source link

Performance Comparison Against the Fastest #14

Open burner opened 8 years ago

burner commented 8 years ago

I really like the graphs that your benchmark create. The next step is to compare the performance against what is out there. It might also be a good idea to compare against strlen to see if you get memory bound, which would be very good.

lodo1995 commented 8 years ago

Looks like we are not memory bound... Also, the Cursor is that slow compared to the parser because the benchmark code asks it to parse the attributes of every element.

plot 1

rjmcguire commented 8 years ago

On Fri, Jun 10, 2016 at 9:58 AM, Lodovico Giaretta <notifications@github.com

wrote:

Looks like we are not memory bound... Also, the Cursor is that slow compared to the parser because the benchmark code asks it to parse the attributes of every element.

[image: plot 1] https://cloud.githubusercontent.com/assets/13088092/15957758/7f0ca828-2ef1-11e6-8ea0-96cb1d1b1c16.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lodo1995/experimental.xml/issues/14#issuecomment-225117356, or mute the thread https://github.com/notifications/unsubscribe/ABU8Ca_5SfacOqmz7eJaABKuJZ8_lnuaks5qKRkogaJpZM4IyFhw .

Nice! How are you making that chart? Would like to put this in my benchmark code.

lodo1995 commented 8 years ago

@rjmcguire My benchmark driver (source/random_benchmark/random_benchmark.d) has an option to output statistical data (min, avg, max, ...) in csv format. Then another program (source/random_benchmark/csvplot.d) takes the csv file and a lot of options (very specific to my benchmark) and outputs a script (containing both code and data) that can be used to feed gnuplot 5.0 and produce an svg graph.

rjmcguire commented 8 years ago

On Fri, Jun 10, 2016 at 10:12 AM, Lodovico Giaretta < notifications@github.com> wrote:

@rjmcguire https://github.com/rjmcguire My benchmark driver ( source/random_benchmark/random_benchmark.d) has an option to output statistical data (min, avg, max, ...) in csv format. Then another program ( source/random_benchmark/csvplot.d) takes the csv file and a lot of options (very specific to my benchmark) and outputs a script (containing both code and data) that can be used to feed gnuplot 5.0 and produce an svg graph.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lodo1995/experimental.xml/issues/14#issuecomment-225119950, or mute the thread https://github.com/notifications/unsubscribe/ABU8CRj2yj_tefCh_LZ8V6RKH8Ds7JYBks5qKRyKgaJpZM4IyFhw .

Thanks. Was hoping you had some thing like: benchmark!func(50000, "func.png");

wilzbach commented 6 years ago

This issue was moved to dlang-community/experimental.xml#3