Skip to content

Instantly share code, notes, and snippets.

@steveyen
Created January 12, 2015 18:34
Show Gist options
  • Save steveyen/3d5e149896fa41db6ddf to your computer and use it in GitHub Desktop.
Save steveyen/3d5e149896fa41db6ddf to your computer and use it in GitHub Desktop.
Steves-MacBook-Pro:bleve steveyen$ go test -bench=. -tags 'leveldb forestdb'
# github.com/blevesearch/bleve
./examples_test.go:23: undefined: testing.M
FAIL github.com/blevesearch/bleve [build failed]
Steves-MacBook-Pro:bleve steveyen$ cd index
Steves-MacBook-Pro:index steveyen$ ls
index.go store upside_down
Steves-MacBook-Pro:index steveyen$ cd upside_down/
Steves-MacBook-Pro:upside_down steveyen$ go test -bench=. -tags 'leveldb forestdb'
PASS
BenchmarkBoltDBIndexing1Workers 2000 1337004 ns/op
BenchmarkBoltDBIndexing2Workers 2000 1419688 ns/op
BenchmarkBoltDBIndexing4Workers 2000 1424358 ns/op
BenchmarkBoltDBIndexing1Workers10Batch 2 686807449 ns/op
BenchmarkBoltDBIndexing2Workers10Batch 2 662585502 ns/op
BenchmarkBoltDBIndexing4Workers10Batch 2 670244004 ns/op
BenchmarkBoltDBIndexing1Workers100Batch 10 277113917 ns/op
BenchmarkBoltDBIndexing2Workers100Batch 5 283915828 ns/op
BenchmarkBoltDBIndexing4Workers100Batch 5 280412466 ns/op
BenchmarkForestDBIndexing1Workers 5000 547882 ns/op
BenchmarkForestDBIndexing2Workers 5000 517085 ns/op
BenchmarkForestDBIndexing4Workers 5000 541805 ns/op
BenchmarkForestDBIndexing1Workers10Batch 5 508649947 ns/op
BenchmarkForestDBIndexing2Workers10Batch 5 520284023 ns/op
BenchmarkForestDBIndexing4Workers10Batch 5 528478693 ns/op
BenchmarkForestDBIndexing1Workers100Batch 5 444194536 ns/op
BenchmarkForestDBIndexing2Workers100Batch 5 434739045 ns/op
BenchmarkForestDBIndexing4Workers100Batch 5 538897251 ns/op
BenchmarkInMemIndexing1Workers 10000 332685 ns/op
BenchmarkInMemIndexing2Workers 10000 327463 ns/op
BenchmarkInMemIndexing4Workers 10000 319517 ns/op
BenchmarkInMemIndexing1Workers10Batch 5 370069998 ns/op
BenchmarkInMemIndexing2Workers10Batch 5 369014198 ns/op
BenchmarkInMemIndexing4Workers10Batch 5 356420479 ns/op
BenchmarkInMemIndexing1Workers100Batch 5 301239719 ns/op
BenchmarkInMemIndexing2Workers100Batch 5 294669522 ns/op
BenchmarkInMemIndexing4Workers100Batch 5 296094015 ns/op
BenchmarkLevelDBIndexing1Workers 5000 416411 ns/op
BenchmarkLevelDBIndexing2Workers 5000 429845 ns/op
BenchmarkLevelDBIndexing4Workers 5000 416137 ns/op
BenchmarkLevelDBIndexing1Workers10Batch 5 409385401 ns/op
BenchmarkLevelDBIndexing2Workers10Batch 5 400695855 ns/op
BenchmarkLevelDBIndexing4Workers10Batch 5 397171346 ns/op
BenchmarkLevelDBIndexing1Workers100Batch 5 258375982 ns/op
BenchmarkLevelDBIndexing2Workers100Batch 10 258409473 ns/op
BenchmarkLevelDBIndexing4Workers100Batch 10 260233442 ns/op
BenchmarkNullIndexing1Workers 10000 171217 ns/op
BenchmarkNullIndexing2Workers 10000 175913 ns/op
BenchmarkNullIndexing4Workers 10000 178031 ns/op
BenchmarkNullIndexing1Workers10Batch 10 211778777 ns/op
BenchmarkNullIndexing2Workers10Batch 10 223734165 ns/op
BenchmarkNullIndexing4Workers10Batch 10 214663949 ns/op
BenchmarkNullIndexing1Workers100Batch 10 184005720 ns/op
BenchmarkNullIndexing2Workers100Batch 10 187341503 ns/op
BenchmarkNullIndexing4Workers100Batch 10 181670411 ns/op
ok github.com/blevesearch/bleve/index/upside_down 108.013s
Steves-MacBook-Pro:upside_down steveyen$
Steves-MacBook-Pro:upside_down steveyen$
Steves-MacBook-Pro:upside_down steveyen$
Steves-MacBook-Pro:upside_down steveyen$
Steves-MacBook-Pro:upside_down steveyen$ go test -bench=. -tags 'leveldb forestdb' -test.cpu=1,2,4
PASS
BenchmarkBoltDBIndexing1Workers 2000 1387689 ns/op
BenchmarkBoltDBIndexing1Workers-2 5000 1541303 ns/op
BenchmarkBoltDBIndexing1Workers-4 5000 1429820 ns/op
BenchmarkBoltDBIndexing2Workers 2000 1473906 ns/op
BenchmarkBoltDBIndexing2Workers-2 5000 1537802 ns/op
BenchmarkBoltDBIndexing2Workers-4 5000 1554454 ns/op
BenchmarkBoltDBIndexing4Workers 2000 1527887 ns/op
BenchmarkBoltDBIndexing4Workers-2 2000 1399137 ns/op
BenchmarkBoltDBIndexing4Workers-4 5000 1657502 ns/op
BenchmarkBoltDBIndexing1Workers10Batch 2 710875318 ns/op
BenchmarkBoltDBIndexing1Workers10Batch-2 2 623874545 ns/op
BenchmarkBoltDBIndexing1Workers10Batch-4 2 741691307 ns/op
BenchmarkBoltDBIndexing2Workers10Batch 2 846370404 ns/op
BenchmarkBoltDBIndexing2Workers10Batch-2 2 585109723 ns/op
BenchmarkBoltDBIndexing2Workers10Batch-4 5 657336193 ns/op
BenchmarkBoltDBIndexing4Workers10Batch 2 697885718 ns/op
BenchmarkBoltDBIndexing4Workers10Batch-2 5 666812627 ns/op
BenchmarkBoltDBIndexing4Workers10Batch-4 5 633221613 ns/op
BenchmarkBoltDBIndexing1Workers100Batch 5 283893073 ns/op
BenchmarkBoltDBIndexing1Workers100Batch-2 10 251592869 ns/op
BenchmarkBoltDBIndexing1Workers100Batch-4 10 244293923 ns/op
BenchmarkBoltDBIndexing2Workers100Batch 5 285629368 ns/op
BenchmarkBoltDBIndexing2Workers100Batch-2 10 218972274 ns/op
BenchmarkBoltDBIndexing2Workers100Batch-4 10 203378487 ns/op
BenchmarkBoltDBIndexing4Workers100Batch 5 291938882 ns/op
BenchmarkBoltDBIndexing4Workers100Batch-2 10 217451967 ns/op
BenchmarkBoltDBIndexing4Workers100Batch-4 10 184814925 ns/op
BenchmarkForestDBIndexing1Workers 5000 567064 ns/op
BenchmarkForestDBIndexing1Workers-2 5000 530522 ns/op
BenchmarkForestDBIndexing1Workers-4 5000 520599 ns/op
BenchmarkForestDBIndexing2Workers 5000 560491 ns/op
BenchmarkForestDBIndexing2Workers-2 5000 528682 ns/op
BenchmarkForestDBIndexing2Workers-4 5000 515543 ns/op
BenchmarkForestDBIndexing4Workers 5000 556093 ns/op
BenchmarkForestDBIndexing4Workers-2 5000 540879 ns/op
BenchmarkForestDBIndexing4Workers-4 5000 514175 ns/op
BenchmarkForestDBIndexing1Workers10Batch 5 538461335 ns/op
BenchmarkForestDBIndexing1Workers10Batch-2 5 490134262 ns/op
BenchmarkForestDBIndexing1Workers10Batch-4 5 470267547 ns/op
BenchmarkForestDBIndexing2Workers10Batch 5 536296757 ns/op
BenchmarkForestDBIndexing2Workers10Batch-2 5 450892818 ns/op
BenchmarkForestDBIndexing2Workers10Batch-4 5 433207083 ns/op
BenchmarkForestDBIndexing4Workers10Batch 5 540418650 ns/op
BenchmarkForestDBIndexing4Workers10Batch-2 5 456128588 ns/op
BenchmarkForestDBIndexing4Workers10Batch-4 5 428799665 ns/op
BenchmarkForestDBIndexing1Workers100Batch 5 439100878 ns/op
BenchmarkForestDBIndexing1Workers100Batch-2 5 409838652 ns/op
BenchmarkForestDBIndexing1Workers100Batch-4 5 400974912 ns/op
BenchmarkForestDBIndexing2Workers100Batch 5 438159795 ns/op
BenchmarkForestDBIndexing2Workers100Batch-2 5 377519356 ns/op
BenchmarkForestDBIndexing2Workers100Batch-4 5 358840689 ns/op
BenchmarkForestDBIndexing4Workers100Batch 5 447441211 ns/op
BenchmarkForestDBIndexing4Workers100Batch-2 5 379144032 ns/op
BenchmarkForestDBIndexing4Workers100Batch-4 5 344173456 ns/op
BenchmarkInMemIndexing1Workers 10000 322701 ns/op
BenchmarkInMemIndexing1Workers-2 10000 306370 ns/op
BenchmarkInMemIndexing1Workers-4 10000 254696 ns/op
BenchmarkInMemIndexing2Workers 10000 332924 ns/op
BenchmarkInMemIndexing2Workers-2 10000 271494 ns/op
BenchmarkInMemIndexing2Workers-4 10000 254765 ns/op
BenchmarkInMemIndexing4Workers 5000 321462 ns/op
BenchmarkInMemIndexing4Workers-2 10000 266971 ns/op
BenchmarkInMemIndexing4Workers-4 10000 257867 ns/op
BenchmarkInMemIndexing1Workers10Batch 5 392558450 ns/op
BenchmarkInMemIndexing1Workers10Batch-2 5 319259627 ns/op
BenchmarkInMemIndexing1Workers10Batch-4 5 292781792 ns/op
BenchmarkInMemIndexing2Workers10Batch 5 372920928 ns/op
BenchmarkInMemIndexing2Workers10Batch-2 10 282908187 ns/op
BenchmarkInMemIndexing2Workers10Batch-4 10 256350197 ns/op
BenchmarkInMemIndexing4Workers10Batch 5 381876482 ns/op
BenchmarkInMemIndexing4Workers10Batch-2 5 268604435 ns/op
BenchmarkInMemIndexing4Workers10Batch-4 10 238899715 ns/op
BenchmarkInMemIndexing1Workers100Batch 5 304598962 ns/op
BenchmarkInMemIndexing1Workers100Batch-2 10 252599133 ns/op
BenchmarkInMemIndexing1Workers100Batch-4 10 228376631 ns/op
BenchmarkInMemIndexing2Workers100Batch 5 294857196 ns/op
BenchmarkInMemIndexing2Workers100Batch-2 10 219276697 ns/op
BenchmarkInMemIndexing2Workers100Batch-4 10 187704051 ns/op
BenchmarkInMemIndexing4Workers100Batch 5 301868269 ns/op
BenchmarkInMemIndexing4Workers100Batch-2 10 211500249 ns/op
BenchmarkInMemIndexing4Workers100Batch-4 10 168143399 ns/op
BenchmarkLevelDBIndexing1Workers 5000 447187 ns/op
BenchmarkLevelDBIndexing1Workers-2 5000 410484 ns/op
BenchmarkLevelDBIndexing1Workers-4 5000 373985 ns/op
BenchmarkLevelDBIndexing2Workers 5000 455276 ns/op
BenchmarkLevelDBIndexing2Workers-2 5000 414894 ns/op
BenchmarkLevelDBIndexing2Workers-4 5000 369766 ns/op
BenchmarkLevelDBIndexing4Workers 5000 452994 ns/op
BenchmarkLevelDBIndexing4Workers-2 5000 408313 ns/op
BenchmarkLevelDBIndexing4Workers-4 5000 371722 ns/op
BenchmarkLevelDBIndexing1Workers10Batch 5 417661988 ns/op
BenchmarkLevelDBIndexing1Workers10Batch-2 5 323564703 ns/op
BenchmarkLevelDBIndexing1Workers10Batch-4 5 293233341 ns/op
BenchmarkLevelDBIndexing2Workers10Batch 5 425704610 ns/op
BenchmarkLevelDBIndexing2Workers10Batch-2 5 284779782 ns/op
BenchmarkLevelDBIndexing2Workers10Batch-4 5 267867935 ns/op
BenchmarkLevelDBIndexing4Workers10Batch 5 424415134 ns/op
BenchmarkLevelDBIndexing4Workers10Batch-2 5 286679710 ns/op
BenchmarkLevelDBIndexing4Workers10Batch-4 5 259140648 ns/op
BenchmarkLevelDBIndexing1Workers100Batch 5 287884296 ns/op
BenchmarkLevelDBIndexing1Workers100Batch-2 10 228669786 ns/op
BenchmarkLevelDBIndexing1Workers100Batch-4 10 213154763 ns/op
BenchmarkLevelDBIndexing2Workers100Batch 5 287400814 ns/op
BenchmarkLevelDBIndexing2Workers100Batch-2 10 191595757 ns/op
BenchmarkLevelDBIndexing2Workers100Batch-4 10 171674759 ns/op
BenchmarkLevelDBIndexing4Workers100Batch 5 290117646 ns/op
BenchmarkLevelDBIndexing4Workers100Batch-2 10 189660172 ns/op
BenchmarkLevelDBIndexing4Workers100Batch-4 10 148662019 ns/op
BenchmarkNullIndexing1Workers 10000 183724 ns/op
BenchmarkNullIndexing1Workers-2 10000 135801 ns/op
BenchmarkNullIndexing1Workers-4 10000 124802 ns/op
BenchmarkNullIndexing2Workers 10000 210247 ns/op
BenchmarkNullIndexing2Workers-2 10000 136361 ns/op
BenchmarkNullIndexing2Workers-4 10000 126308 ns/op
BenchmarkNullIndexing4Workers 10000 184498 ns/op
BenchmarkNullIndexing4Workers-2 10000 137097 ns/op
BenchmarkNullIndexing4Workers-4 10000 126003 ns/op
BenchmarkNullIndexing1Workers10Batch 10 228883297 ns/op
BenchmarkNullIndexing1Workers10Batch-2 10 173393952 ns/op
BenchmarkNullIndexing1Workers10Batch-4 10 157685970 ns/op
BenchmarkNullIndexing2Workers10Batch 10 228751891 ns/op
BenchmarkNullIndexing2Workers10Batch-2 10 138364408 ns/op
BenchmarkNullIndexing2Workers10Batch-4 10 119989898 ns/op
BenchmarkNullIndexing4Workers10Batch 10 226408259 ns/op
BenchmarkNullIndexing4Workers10Batch-2 10 138133626 ns/op
BenchmarkNullIndexing4Workers10Batch-4 20 105757208 ns/op
BenchmarkNullIndexing1Workers100Batch 10 204370086 ns/op
BenchmarkNullIndexing1Workers100Batch-2 10 154172211 ns/op
BenchmarkNullIndexing1Workers100Batch-4 10 141815885 ns/op
BenchmarkNullIndexing2Workers100Batch 10 201820046 ns/op
BenchmarkNullIndexing2Workers100Batch-2 20 116091895 ns/op
BenchmarkNullIndexing2Workers100Batch-4 20 100389005 ns/op
BenchmarkNullIndexing4Workers100Batch 10 198937229 ns/op
BenchmarkNullIndexing4Workers100Batch-2 20 114292727 ns/op
BenchmarkNullIndexing4Workers100Batch-4 20 80181289 ns/op
ok github.com/blevesearch/bleve/index/upside_down 335.781s
Steves-MacBook-Pro:upside_down steveyen$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment