On Jan 16, 2008 1:25 PM, Michael McCandless <[EMAIL PROTECTED]> wrote:
> I'd like to run an alg like this: > > ResetSystemErase > { "BuildIndex" > CreateIndex > { "AddDocs" AddDoc > : 200000 > CloseIndex > } > > RepSumByPrefRound BuildIndex > > But in the report, for rec/s, I'd like to see the total BuildIndex > time divided by 200,000, ie, the net time per document to create this > index, including the time taken to create and to close the index. > > Instead I see the total time divided by 200,002, because each of the > CreateIndex & CloseIndex increment the counter by 1. > > I think it's not possible to express this in the contrib/benchmark > scripting language now? > This is true. One way to do this is to extend CreateIndexTask by say CreateIndex0Task which would call super.doLogic() and return 0. > Really I want a way to run a given task but NOT counting its counter. > Eg, if a task is prefixed with "-" then do not include its returned > count in the report? This is a more general feature, I like it, shouldn't be that hard to add either. New JIRA issue? Mike >