![]() | |
#41
| |||
| |||
|
|
Allright then. Here is a version you could call bench-lite. It doesn't try to figure out what platform it's running on. You set that on the third line. I don't know the correct format for file creates for mvbase/jbase/unidata. Somebody that knows will have to supply that. Screen prints are reduced to a minimum, so as not to impact the times. There is no attempt to update results into the MD file. It still checks the MD file for multi-user benchs. After the code is what my D3/NT platform returns. Is this better? |
#42
| |||
| |||
|
|
1) Uses TIME() to measure things This is too course on fast machines, will not work across midnight and more importantly is *wall* clock time not cpu time leading to inconsistent results. Use SYSTEM(9) instead it was put in for this task. 2) Tests are too long, other processes on the machine are more likely to interrupt screwing up the results. |
|
3) Keys interact badly with hash algorithm. Not sure if you meant this but your keys are of the form: ABCDABCDBENCHMARK.PICK where ABCDABCD are the only part that varies among the records. The traditional pick hash function i think is 32 bit limited and right biased meaning for long keys it is important that the rightmost part is variable. 4) Even fixing 3) the keys seem to resonate(alternating empty groups and grossly overflowed groups) with the hash algorithm. |
#43
| |||
| |||
|
|
I'd be interested in any other comments from anybody else about how to best generate IDs that hash evenly thru a properly sized D3 style hashed file. Randomize both the left *and* the right sides of the key? |
#44
| |||
| |||
|
|
Robert Colquhoun wrote: 3) Keys interact badly with hash algorithm. Well, I was trying to avoid all this (back umpteen years ago when I first borrowed (stole) some code to start this bench). I'd be interested in any other comments from anybody else about how to best generate IDs that hash evenly thru a properly sized D3 style hashed file. Randomize both the left *and* the right sides of the key? Art |
![]() |
| Thread Tools | |
| Display Modes | |
| |