SC, Rev,and RB speed test

Dar Scott dsc at swcp.com
Thu Apr 15 06:20:51 EDT 2004


On Thursday, April 15, 2004, at 03:31 AM, Dar Scott wrote:

> 2.5 Meg
> 'contains' find in first 4 chars:    4510 microseconds
> 'contains' fails:                   48877 microseconds
> offset() find in first 4 chars:         0.83  microseconds
> offset() fails:                     43032 microseconds

I got out of bed and restarted Rev...

'contains' find in middle 4 char:     20307 microseconds

offset() find in middle 4 char:       15428 microseconds

'is in' find in middle 4 char:        15227 microseconds

For this data, 'contains' seems to have about a 5 ms overhead for 2.5 
Meg data, no matter whether there is a match or not.  That is 
interesting.  This takes 4537 microseconds:

get x  -- where x is 2.5 meg long

It looks as though 'contains' is doing a copy before doing the test.

Back to bed...

Dar Scott



More information about the use-livecode mailing list