[Groonga-commit] groonga/grnxx at 5680658 [master] Gnx: add missing b.ResetTimer() after initialization.

Back to archive index

susumu.yata null+****@clear*****
Thu May 7 18:12:19 JST 2015


susumu.yata	2015-05-07 18:12:19 +0900 (Thu, 07 May 2015)

  New Revision: 568065858c537058a20b061dba06a753f8972f5f
  https://github.com/groonga/grnxx/commit/568065858c537058a20b061dba06a753f8972f5f

  Message:
    Gnx: add missing b.ResetTimer() after initialization.

  Modified files:
    go3/gnx/grn_test.go

  Modified: go3/gnx/grn_test.go (+2 -0)
===================================================================
--- go3/gnx/grn_test.go    2015-05-07 18:01:54 +0900 (9bdbaf6)
+++ go3/gnx/grn_test.go    2015-05-07 18:12:19 +0900 (1300718)
@@ -715,6 +715,7 @@ func benchmarkGrnColumnGetValueForScalar(b *testing.B, valueType string) {
 		ids[i] = id
 	}
 
+	b.ResetTimer()
 	for i := 0; i < b.N; i++ {
 		for _, id := range ids {
 			if _, err := column.GetValue(id); err != nil {
@@ -739,6 +740,7 @@ func benchmarkGrnColumnGetValueForVector(b *testing.B, valueType string) {
 		ids[i] = id
 	}
 
+	b.ResetTimer()
 	for i := 0; i < b.N; i++ {
 		for _, id := range ids {
 			if _, err := column.GetValue(id); err != nil {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index