Skip to content

Commit

Permalink
Restructured benchmark layout (preparing to add new benchmarks).
Browse files Browse the repository at this point in the history
  • Loading branch information
skvadrik committed Dec 3, 2024
1 parent e5cb9a1 commit 170ffa3
Show file tree
Hide file tree
Showing 467 changed files with 59,105 additions and 18,751 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "benchmarks/submatch_java/REgen"]
path = benchmarks/submatch_java/REgen
[submodule "benchmarks/c/submatch_libre2c/java/REgen"]
path = benchmarks/c/submatch_libre2c/java/REgen
url = https://github.com/skvadrik/REgen.git
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,9 @@ if (RE2C_BUILD_LIBS)
endif()

if(RE2C_BUILD_BENCHMARKS)
add_subdirectory(benchmarks/submatch_nfa)
add_subdirectory(benchmarks/submatch_dfa_jit)
add_subdirectory(benchmarks/submatch_java)
add_subdirectory(benchmarks/c/submatch_libre2c/nfa)
add_subdirectory(benchmarks/c/submatch_libre2c/jit)
add_subdirectory(benchmarks/c/submatch_libre2c/java)
endif()
else()
# empty check target
Expand All @@ -645,7 +645,7 @@ else()
endif()

if(RE2C_BUILD_BENCHMARKS)
add_subdirectory(benchmarks/submatch_dfa_aot)
add_subdirectory(benchmarks/c/submatch)
endif()

if(RE2C_BUILD_TESTS)
Expand Down
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,8 @@ TESTS = \

# benchmarks
if WITH_BENCHMARKS
SUBDIRS += benchmarks/submatch_dfa_aot
EXTRA_DIST += benchmarks/submatch_dfa_aot
SUBDIRS += benchmarks/c/submatch
EXTRA_DIST += benchmarks/c
endif

# libre2c
Expand Down
12 changes: 6 additions & 6 deletions Makefile.lib.am
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ check_PROGRAMS += test_libre2c

# benchmarks
if WITH_BENCHMARKS
SUBDIRS += benchmarks/submatch_nfa
SUBDIRS += benchmarks/submatch_dfa_jit
EXTRA_DIST += benchmarks/submatch_nfa
EXTRA_DIST += benchmarks/submatch_dfa_jit
SUBDIRS += benchmarks/c/submatch_libre2c/nfa
SUBDIRS += benchmarks/c/submatch_libre2c/jit
EXTRA_DIST += benchmarks/c/submatch_libre2c/nfa
EXTRA_DIST += benchmarks/c/submatch_libre2c/jit
if WITH_JAVA
SUBDIRS += benchmarks/submatch_java
EXTRA_DIST += benchmarks/submatch_java
SUBDIRS += benchmarks/c/submatch_libre2c/java
EXTRA_DIST += benchmarks/c/submatch_libre2c/java
endif # WITH_JAVA
endif # WITH_BENCHMARKS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <string.h>

#include "benchmarks/common/common.h"
#include "benchmarks/c/common/common.h"
#include "lib/regex.h"

#ifdef HAVE_RE2_RE2_H
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 170ffa3

Please sign in to comment.