-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from coreos/no_sync
add option to skip freelist sync
- Loading branch information
Showing
6 changed files
with
247 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package bolt_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/coreos/bbolt" | ||
) | ||
|
||
func TestSimulateNoFreeListSync_1op_1p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 1, 1) | ||
} | ||
func TestSimulateNoFreeListSync_10op_1p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 10, 1) | ||
} | ||
func TestSimulateNoFreeListSync_100op_1p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 100, 1) | ||
} | ||
func TestSimulateNoFreeListSync_1000op_1p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 1000, 1) | ||
} | ||
func TestSimulateNoFreeListSync_10000op_1p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 10000, 1) | ||
} | ||
func TestSimulateNoFreeListSync_10op_10p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 10, 10) | ||
} | ||
func TestSimulateNoFreeListSync_100op_10p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 100, 10) | ||
} | ||
func TestSimulateNoFreeListSync_1000op_10p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 1000, 10) | ||
} | ||
func TestSimulateNoFreeListSync_10000op_10p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 10000, 10) | ||
} | ||
func TestSimulateNoFreeListSync_100op_100p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 100, 100) | ||
} | ||
func TestSimulateNoFreeListSync_1000op_100p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 1000, 100) | ||
} | ||
func TestSimulateNoFreeListSync_10000op_100p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 10000, 100) | ||
} | ||
func TestSimulateNoFreeListSync_10000op_1000p(t *testing.T) { | ||
testSimulate(t, &bolt.Options{NoFreelistSync: true}, 8, 10000, 1000) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.