Skip to content
This repository was archived by the owner on Sep 18, 2021. It is now read-only.
This repository was archived by the owner on Sep 18, 2021. It is now read-only.

The error whwn there is no old results #1

@arcusfelis

Description

@arcusfelis

It is after the second add_document/2 function was added.
The second and all later runs works fine.
The tested commit is 9a1e14321d342a634cf37ae243cbf7058074abad.

add_document/2 5000    127.3 µs/op
add_document/2  1000    795.4 µs/op

benchmark                        old µs/op       new µs/op         delta
add_document/2                       168.1           795.3       +78.86%
ERROR: emark failed while processing /home/user/erlang/xapian: {'EXIT',
    {function_clause,
        [{lists,zipwith,
             [#Fun<emark_report.3.61075729>,[],
              [{add_document,2,5000,127.311}]],
             [{file,"lists.erl"},{line,385}]},
         {lists,zipwith,3,[{file,"lists.erl"},{line,385}]},
         {emark_report,show_diff,2,[{file,"src/emark_report.erl"},{line,79}]},
         {emark_plugin,perform_benchmark,2,
             [{file,"src/emark_plugin.erl"},{line,215}]},
         {emark_plugin,emark,2,[{file,"src/emark_plugin.erl"},{line,48}]},
         {rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,423}]},
         {rebar_core,execute,5,[{file,"src/rebar_core.erl"},{line,357}]},
         {rebar_core,process_dir0,6,
             [{file,"src/rebar_core.erl"},{line,220}]}]}}

user@omicron:~/erlang/xapian $ ./rebar emark skip_deps=true
==> xapian (emark)
Test DB: add_doc_bm
 add_document/2 3000    175.1 µs/op
add_document/2  1000    715.8 µs/op

benchmark                        old µs/op       new µs/op         delta
add_document/2                       795.4           715.8       -11.12%
add_document/2                       127.3           175.0       +27.26%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions