[Groonga-commit] groonga/groonga at 7d09a62 [master] test: add tests for LZ4/zlib compression

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Nov 10 11:45:05 JST 2016


Kouhei Sutou	2016-11-10 11:45:05 +0900 (Thu, 10 Nov 2016)

  New Revision: 7d09a62f0792267bfccba22bdab83c2eccf94423
  https://github.com/groonga/groonga/commit/7d09a62f0792267bfccba22bdab83c2eccf94423

  Message:
    test: add tests for LZ4/zlib compression

  Added files:
    test/command/suite/select/output/lz4/scalar/compressed.expected
    test/command/suite/select/output/lz4/scalar/compressed.test
    test/command/suite/select/output/zlib/scalar/compressed.expected
    test/command/suite/select/output/zlib/scalar/compressed.test
  Modified files:
    vendor/ngx_mruby-source
  Renamed files:
    test/command/suite/select/output/lz4/scalar/packed.expected
      (from test/command/suite/select/output/lz4/scalar.expected)
    test/command/suite/select/output/lz4/scalar/packed.test
      (from test/command/suite/select/output/lz4/scalar.test)
    test/command/suite/select/output/zlib/scalar/packed.expected
      (from test/command/suite/select/output/zlib/scalar.expected)
    test/command/suite/select/output/zlib/scalar/packed.test
      (from test/command/suite/select/output/zlib/scalar.test)

  Added: test/command/suite/select/output/lz4/scalar/compressed.expected (+55 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/output/lz4/scalar/compressed.expected    2016-11-10 11:45:05 +0900 (bbbdfea)
@@ -0,0 +1,55 @@
+table_create Entries TABLE_PAT_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Entries content COLUMN_SCALAR|COMPRESS_LZ4 Text
+[[0,0.0,0.0],true]
+load --table Entries
+[
+  {
+    "_key": "Groonga",
+    "content": "(256 bytes or more required for compression.) Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of Groonga is that a newly registered document instantly appears in search results. Also, Groonga allows updates without read locks. These characteristics result in superior performance on real-time applications."
+  },
+  {
+    "_key": "Mroonga",
+    "content": "(256 bytes or more required for compression.) Mroonga is a storage engine for MySQL. It provides fast fulltext search feature for all languages including Chinese, Japanese and Korean to all MySQL users. Mroonga was called Groonga storage engine. Mroonga is Tritonn successor."
+  }
+]
+[[0,0.0,0.0],2]
+select Entries
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        2
+      ],
+      [
+        [
+          "_id",
+          "UInt32"
+        ],
+        [
+          "_key",
+          "ShortText"
+        ],
+        [
+          "content",
+          "Text"
+        ]
+      ],
+      [
+        1,
+        "Groonga",
+        "(256 bytes or more required for compression.) Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of Groonga is that a newly registered document instantly appears in search results. Also, Groonga allows updates without read locks. These characteristics result in superior performance on real-time applications."
+      ],
+      [
+        2,
+        "Mroonga",
+        "(256 bytes or more required for compression.) Mroonga is a storage engine for MySQL. It provides fast fulltext search feature for all languages including Chinese, Japanese and Korean to all MySQL users. Mroonga was called Groonga storage engine. Mroonga is Tritonn successor."
+      ]
+    ]
+  ]
+]

  Added: test/command/suite/select/output/lz4/scalar/compressed.test (+16 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/output/lz4/scalar/compressed.test    2016-11-10 11:45:05 +0900 (bd1c988)
@@ -0,0 +1,16 @@
+table_create Entries TABLE_PAT_KEY ShortText
+column_create Entries content COLUMN_SCALAR|COMPRESS_LZ4 Text
+
+load --table Entries
+[
+  {
+    "_key": "Groonga",
+    "content": "(256 bytes or more required for compression.) Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of Groonga is that a newly registered document instantly appears in search results. Also, Groonga allows updates without read locks. These characteristics result in superior performance on real-time applications."
+  },
+  {
+    "_key": "Mroonga",
+    "content": "(256 bytes or more required for compression.) Mroonga is a storage engine for MySQL. It provides fast fulltext search feature for all languages including Chinese, Japanese and Korean to all MySQL users. Mroonga was called Groonga storage engine. Mroonga is Tritonn successor."
+  }
+]
+
+select Entries

  Renamed: test/command/suite/select/output/lz4/scalar/packed.expected (+0 -0) 100%
===================================================================

  Renamed: test/command/suite/select/output/lz4/scalar/packed.test (+0 -0) 100%
===================================================================

  Added: test/command/suite/select/output/zlib/scalar/compressed.expected (+55 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/output/zlib/scalar/compressed.expected    2016-11-10 11:45:05 +0900 (0ebcf76)
@@ -0,0 +1,55 @@
+table_create Entries TABLE_PAT_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Entries content COLUMN_SCALAR|COMPRESS_ZLIB Text
+[[0,0.0,0.0],true]
+load --table Entries
+[
+  {
+    "_key": "Groonga",
+    "content": "(256 bytes or more required for compression.) Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of Groonga is that a newly registered document instantly appears in search results. Also, Groonga allows updates without read locks. These characteristics result in superior performance on real-time applications."
+  },
+  {
+    "_key": "Mroonga",
+    "content": "(256 bytes or more required for compression.) Mroonga is a storage engine for MySQL. It provides fast fulltext search feature for all languages including Chinese, Japanese and Korean to all MySQL users. Mroonga was called Groonga storage engine. Mroonga is Tritonn successor."
+  }
+]
+[[0,0.0,0.0],2]
+select Entries
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        2
+      ],
+      [
+        [
+          "_id",
+          "UInt32"
+        ],
+        [
+          "_key",
+          "ShortText"
+        ],
+        [
+          "content",
+          "Text"
+        ]
+      ],
+      [
+        1,
+        "Groonga",
+        "(256 bytes or more required for compression.) Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of Groonga is that a newly registered document instantly appears in search results. Also, Groonga allows updates without read locks. These characteristics result in superior performance on real-time applications."
+      ],
+      [
+        2,
+        "Mroonga",
+        "(256 bytes or more required for compression.) Mroonga is a storage engine for MySQL. It provides fast fulltext search feature for all languages including Chinese, Japanese and Korean to all MySQL users. Mroonga was called Groonga storage engine. Mroonga is Tritonn successor."
+      ]
+    ]
+  ]
+]

  Added: test/command/suite/select/output/zlib/scalar/compressed.test (+16 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/output/zlib/scalar/compressed.test    2016-11-10 11:45:05 +0900 (c96359f)
@@ -0,0 +1,16 @@
+table_create Entries TABLE_PAT_KEY ShortText
+column_create Entries content COLUMN_SCALAR|COMPRESS_ZLIB Text
+
+load --table Entries
+[
+  {
+    "_key": "Groonga",
+    "content": "(256 bytes or more required for compression.) Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of Groonga is that a newly registered document instantly appears in search results. Also, Groonga allows updates without read locks. These characteristics result in superior performance on real-time applications."
+  },
+  {
+    "_key": "Mroonga",
+    "content": "(256 bytes or more required for compression.) Mroonga is a storage engine for MySQL. It provides fast fulltext search feature for all languages including Chinese, Japanese and Korean to all MySQL users. Mroonga was called Groonga storage engine. Mroonga is Tritonn successor."
+  }
+]
+
+select Entries

  Renamed: test/command/suite/select/output/zlib/scalar/packed.expected (+0 -0) 100%
===================================================================

  Renamed: test/command/suite/select/output/zlib/scalar/packed.test (+0 -0) 100%
===================================================================

  Modified: vendor/ngx_mruby-source (+1 -1)
===================================================================
--- vendor/ngx_mruby-source    2016-11-09 17:40:56 +0900 (b2a3e59)
+++ vendor/ngx_mruby-source    2016-11-10 11:45:05 +0900 (5ddfa70)
@@ -1 +1 @@
-Subproject commit b2a3e5928462053615a7ec3142aabad42ea2ebdf
+Subproject commit 5ddfa708193bf4b1a4de8b28b357d514f3f50373
-------------- next part --------------
HTML����������������������������...
Download 



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