[Groonga-commit] groonga/groonga at a14b71f [master] benchmark range-select: add benchmark result

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Sep 13 21:08:26 JST 2014


Kouhei Sutou	2014-09-13 21:08:26 +0900 (Sat, 13 Sep 2014)

  New Revision: a14b71fb8c4dfbbddbc7e7d46ee5d2e613ef1224
  https://github.com/groonga/groonga/commit/a14b71fb8c4dfbbddbc7e7d46ee5d2e613ef1224

  Message:
    benchmark range-select: add benchmark result
    
    mruby enabled range select is faster than mruby disabled range select
    even when the number of records is 1000. It means that mruby query
    optimizer overhead is smaller than operation time
    of "between(X, 0, 'exclude', 100, 'include')" - "X > 0 && X <= 100".
    
    Yay.

  Modified files:
    benchmark/bench-range-select.c

  Modified: benchmark/bench-range-select.c (+34 -0)
===================================================================
--- benchmark/bench-range-select.c    2014-09-13 20:40:19 +0900 (98cd7db)
+++ benchmark/bench-range-select.c    2014-09-13 21:08:26 +0900 (4c0b500)
@@ -16,6 +16,40 @@
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
 
+/*
+  Groonga: 09a4c4e00832fb90dee74c5b97b7cf0f5952f85b
+
+  CPU Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz (fam: 06, model: 1e, stepping: 05)
+
+  CFLAGS: -O0 -g3
+  % make --quiet -C benchmark run-bench-range-select
+  run-bench-range-select:
+  Process 10 times in each pattern
+                                               (total)    (average)  (median)
+    (   500,    600] (   1000):    with mruby: (0.0058s)  (0.5773ms) (0.5830ms)
+    (   500,    600] (   1000): without mruby: (0.0062s)  (0.6203ms) (0.6200ms)
+    (  5000,   5100] (  10000):    with mruby: (0.0058s)  (0.5827ms) (0.5800ms)
+    (  5000,   5100] (  10000): without mruby: (0.0473s)  (0.0047s)  (0.0048s)
+    ( 50000,  50100] ( 100000):    with mruby: (0.0064s)  (0.6397ms) (0.6370ms)
+    ( 50000,  50100] ( 100000): without mruby: (0.4498s)  (0.0450s)  (0.0442s)
+    (500000, 500100] (1000000):    with mruby: (0.0057s)  (0.5710ms) (0.5190ms)
+    (500000, 500100] (1000000): without mruby: (4.3193s)  (0.4319s)  (0.4306s)
+
+  CFLAGS: -O2 -g
+  % make --quiet -C benchmark run-bench-range-select
+  run-bench-range-select:
+  Process 10 times in each pattern
+                                               (total)    (average)  (median)
+    (   500,    600] (   1000):    with mruby: (0.0031s)  (0.3058ms) (0.2890ms)
+    (   500,    600] (   1000): without mruby: (0.0031s)  (0.3132ms) (0.3090ms)
+    (  5000,   5100] (  10000):    with mruby: (0.0031s)  (0.3063ms) (0.3100ms)
+    (  5000,   5100] (  10000): without mruby: (0.0239s)  (0.0024s)  (0.0023s)
+    ( 50000,  50100] ( 100000):    with mruby: (0.0028s)  (0.2825ms) (0.2660ms)
+    ( 50000,  50100] ( 100000): without mruby: (0.2117s)  (0.0212s)  (0.0211s)
+    (500000, 500100] (1000000):    with mruby: (0.0028s)  (0.2757ms) (0.2650ms)
+    (500000, 500100] (1000000): without mruby: (2.0874s)  (0.2087s)  (0.2092s)
+*/
+
 #include <stdio.h>
 #include <string.h>
 
-------------- next part --------------
HTML����������������������������...
Download 



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