Re: Fastcode UpperCase B&V 3.0
- From: "Dennis" <marianndkc@xxxxxxxxxxxxxxx>
- Date: Tue, 31 May 2005 20:44:27 +0200
Hi
> Then we must select a solution to the problem that we measure a slowdown
if
> validation has been run before the benchmark. Possible solutions:
>
> 1) The cheap hack - do not allow benchmarking after validation.
> 2) Decrease loop counts in Validate 6 and 7 - validation becomes less
> throrough.
> 3) Find the exact problem and the exact cure.
3)The problems was caused by the MM and using BucketMem_ASM solved it.
Running this testcode
procedure TMainForm.Button1Click(Sender: TObject);
var
I1, I2 : Cardinal;
begin
for I1 := 1 to 2 do
begin
BenchmarkButtonClick(nil);
Update;
end;
ValidateButtonClick(nil);
ReportRichEdit.Lines.Delete(ReportRichEdit.Lines.Count-1);
Update;
for I2 := 1 to 2 do
begin
BenchmarkButtonClick(nil);
Update;
end;
end;
Gave accuracy 0.4%
UpperCaseRTL_a C 311 155 466
UpperCaseRTL_a C 310 157 467
UpperCaseRTL_a C 312 156 468
UpperCaseRTL_a C 311 157 468
Problem solved
Regards
Dennis
.
- References:
- Fastcode UpperCase B&V 3.0
- From: Dennis
- Fastcode UpperCase B&V 3.0
- Prev by Date: Re: Fastcode UpperCase B&V 3.0
- Next by Date: Re: Fastcode UpperCase B&V 2.8
- Previous by thread: Re: Fastcode UpperCase B&V 3.0
- Next by thread: Re: Fastcode UpperCase B&V 3.0
- Index(es):