From ee47d1c21aa25c922789802603b518bbcdae2974 Mon Sep 17 00:00:00 2001 From: Marty Schoch Date: Fri, 24 Apr 2015 17:31:34 -0400 Subject: [PATCH] standardize on including 1000 sized batches --- index/upside_down/benchmark_boltdb_test.go | 12 ++++++++++++ index/upside_down/benchmark_forestdb_test.go | 12 ++++++++++++ index/upside_down/benchmark_gtreap_test.go | 12 ++++++++++++ index/upside_down/benchmark_inmem_test.go | 12 ++++++++++++ index/upside_down/benchmark_null_test.go | 12 ++++++++++++ 5 files changed, 60 insertions(+) diff --git a/index/upside_down/benchmark_boltdb_test.go b/index/upside_down/benchmark_boltdb_test.go index ae80bf44..549f8d7b 100644 --- a/index/upside_down/benchmark_boltdb_test.go +++ b/index/upside_down/benchmark_boltdb_test.go @@ -63,3 +63,15 @@ func BenchmarkBoltDBIndexing2Workers100Batch(b *testing.B) { func BenchmarkBoltDBIndexing4Workers100Batch(b *testing.B) { CommonBenchmarkIndexBatch(b, CreateBoltDB, DestroyBoltDB, 4, 100) } + +func BenchmarkBoltBIndexing1Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateBoltDB, DestroyBoltDB, 1, 1000) +} + +func BenchmarkBoltBIndexing2Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateBoltDB, DestroyBoltDB, 2, 1000) +} + +func BenchmarkBoltBIndexing4Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateBoltDB, DestroyBoltDB, 4, 1000) +} diff --git a/index/upside_down/benchmark_forestdb_test.go b/index/upside_down/benchmark_forestdb_test.go index 7b4d86a2..31b33165 100644 --- a/index/upside_down/benchmark_forestdb_test.go +++ b/index/upside_down/benchmark_forestdb_test.go @@ -72,3 +72,15 @@ func BenchmarkForestDBIndexing2Workers100Batch(b *testing.B) { func BenchmarkForestDBIndexing4Workers100Batch(b *testing.B) { CommonBenchmarkIndexBatch(b, CreateForestDB, DestroyForestDB, 4, 100) } + +func BenchmarkForestDBIndexing1Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateForestDB, DestroyForestDB, 1, 1000) +} + +func BenchmarkForestDBIndexing2Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateForestDB, DestroyForestDB, 2, 1000) +} + +func BenchmarkForestDBIndexing4Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateForestDB, DestroyForestDB, 4, 1000) +} diff --git a/index/upside_down/benchmark_gtreap_test.go b/index/upside_down/benchmark_gtreap_test.go index 61306b33..673d830f 100644 --- a/index/upside_down/benchmark_gtreap_test.go +++ b/index/upside_down/benchmark_gtreap_test.go @@ -61,3 +61,15 @@ func BenchmarkGTreapIndexing2Workers100Batch(b *testing.B) { func BenchmarkGTreapIndexing4Workers100Batch(b *testing.B) { CommonBenchmarkIndexBatch(b, CreateGTreap, DestroyGTreap, 4, 100) } + +func BenchmarkGTreapIndexing1Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateGTreap, DestroyGTreap, 1, 1000) +} + +func BenchmarkGTreapIndexing2Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateGTreap, DestroyGTreap, 2, 1000) +} + +func BenchmarkGTreapIndexing4Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateGTreap, DestroyGTreap, 4, 1000) +} diff --git a/index/upside_down/benchmark_inmem_test.go b/index/upside_down/benchmark_inmem_test.go index 867c30d0..ee06bd5b 100644 --- a/index/upside_down/benchmark_inmem_test.go +++ b/index/upside_down/benchmark_inmem_test.go @@ -61,3 +61,15 @@ func BenchmarkInMemIndexing2Workers100Batch(b *testing.B) { func BenchmarkInMemIndexing4Workers100Batch(b *testing.B) { CommonBenchmarkIndexBatch(b, CreateInMem, DestroyInMem, 4, 100) } + +func BenchmarkInMemIndexing1Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateInMem, DestroyInMem, 1, 1000) +} + +func BenchmarkInMemIndexing2Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateInMem, DestroyInMem, 2, 1000) +} + +func BenchmarkInMemIndexing4Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateInMem, DestroyInMem, 4, 1000) +} diff --git a/index/upside_down/benchmark_null_test.go b/index/upside_down/benchmark_null_test.go index c893990c..a02813a3 100644 --- a/index/upside_down/benchmark_null_test.go +++ b/index/upside_down/benchmark_null_test.go @@ -61,3 +61,15 @@ func BenchmarkNullIndexing2Workers100Batch(b *testing.B) { func BenchmarkNullIndexing4Workers100Batch(b *testing.B) { CommonBenchmarkIndexBatch(b, CreateNull, DestroyNull, 4, 100) } + +func BenchmarkNullIndexing1Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateNull, DestroyNull, 1, 1000) +} + +func BenchmarkNullIndexing2Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateNull, DestroyNull, 2, 1000) +} + +func BenchmarkNullIndexing4Workers1000Batch(b *testing.B) { + CommonBenchmarkIndexBatch(b, CreateNull, DestroyNull, 4, 1000) +}