Skip to content

Commit

Permalink
Separate benchmark application
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed May 22, 2014
1 parent ce1f3cd commit fc1a4b7
Show file tree
Hide file tree
Showing 6 changed files with 419 additions and 386 deletions.
25 changes: 21 additions & 4 deletions bench.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,34 @@
},
pointStart: Date.UTC(2014, 5, 16),
data: []
},
{
type: 'area',
name: 'tree_compile',
pointInterval: 1000,
lineWidth: 1,
marker: {
radius: 3
},
pointStart: Date.UTC(2014, 5, 16),
data: []
}
]
};

var lines = data.split(/\n/);
$(lines).each(function(i,line) {
var columns = line.split(/,/);
var str_i = parseInt(columns[1]);
var pcre_i = parseInt(columns[2]);
options.series[0].data.push(str_i || 0);
options.series[1].data.push(pcre_i || 0);
var a;
if (a = parseInt(columns[1])) {
options.series[0].data.push(a || 0);
}
if (a = parseInt(columns[2])) {
options.series[1].data.push(a || 0);
}
if (a = parseInt(columns[3])) {
options.series[2].data.push(a || 0);
}
});

$('#chart').highcharts(options);
Expand Down
8 changes: 6 additions & 2 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,21 @@ endif

if ENABLE_GRAPHVIZ
TESTS += check_gvc
check_gvc_SOURCES = check_gvc.c bench.c
check_gvc_SOURCES = check_gvc.c
# check_gvc_LDADD = $(GVC_DEPS_LIBS) $(DEPS_LIBS) -L$(top_builddir)/src -lr3 @CHECK_LIBS@
# check_gvc_CFLAGS = $(GVC_DEPS_CFLAGS) $(DEPS_CFLAGS) -I$(top_builddir) -I$(top_builddir)/include @CHECK_CFLAGS@
AM_CFLAGS += $(GVC_DEPS_CFLAGS)
AM_LDFLAGS += $(GVC_DEPS_LIBS)
endif


bin_PROGRAMS = benchmark
benchmark_SOURCES = bench.c



# noinst_PROGRAMS = $(TESTS)
check_tree_SOURCES = check_tree.c bench.c
check_tree_SOURCES = check_tree.c
# check_tree_LDADD=$(DEPS_LIBS) -L$(top_builddir)/src -lr3 @CHECK_LIBS@
# check_tree_CFLAGS=$(DEPS_CFLAGS) -I$(top_builddir) -I$(top_builddir)/include @CHECK_CFLAGS@

Expand Down
Loading

0 comments on commit fc1a4b7

Please sign in to comment.