完善了旋转

This commit is contained in:
2019-03-29 00:50:55 +08:00
parent 45ef1aca6c
commit 750ed93b74
4 changed files with 103 additions and 71 deletions

View File

@@ -20,7 +20,7 @@ import (
const CompareSize = 1000000
const NumberMax = 50000000
func Save(t *testing.T) {
func TestSave(t *testing.T) {
f, err := os.OpenFile("../l.log", os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
if err != nil {
@@ -447,10 +447,8 @@ func BenchmarkIndexRange(b *testing.B) {
func BenchmarkSkipListSet(b *testing.B) {
l := loadTestData()
execCount := 1
b.N = len(l) * execCount
for i := 0; i < execCount; i++ {
sl := skiplist.New(skiplist.Int)
for _, v := range l {