- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAdversary (0.09 sec)
-
src/sort/sort_test.go
gas := size - 1 data := make([]int, size) for i := 0; i < size; i++ { data[i] = gas } return &adversaryTestingData{t: t, data: data, maxcmp: maxcmp, gas: gas} } func TestAdversary(t *testing.T) { const size = 10000 // large enough to distinguish between O(n^2) and O(n*log(n)) maxcmp := size * lg(size) * 4 // the factor 4 was found by trial and error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:41:04 UTC 2024 - 16.9K bytes - Viewed (0)