Skip to content

Commit fcc98fb

Browse files
NickGerlemanmeta-codesync[bot]
authored andcommitted
CSS Grid 3/9: Grid benchmark (#1880)
Summary: Pull Request resolved: #1880 Add grid layout benchmarks. Includes: - YGGridBenchmark.c: 14 benchmark scenarios - benchmarkgrid: shell script to run benchmarks - CMakeLists.txt: benchmarkgrid target Differential Revision: D93946260
1 parent fc9216f commit fcc98fb

3 files changed

Lines changed: 610 additions & 3 deletions

File tree

benchmark/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ include(${YOGA_ROOT}/cmake/project-defaults.cmake)
1212

1313
add_subdirectory(${YOGA_ROOT}/yoga ${CMAKE_CURRENT_BINARY_DIR}/yoga)
1414

15-
file(GLOB SOURCES_LEGACY CONFIGURE_DEPENDS
16-
${CMAKE_CURRENT_SOURCE_DIR}/*.c)
1715
file(GLOB SOURCES CONFIGURE_DEPENDS
1816
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
1917

2018
add_executable(benchmark ${SOURCES})
21-
add_executable(benchmarklegacy ${SOURCES_LEGACY})
19+
add_executable(benchmarklegacy ${CMAKE_CURRENT_SOURCE_DIR}/YGBenchmark.c)
20+
add_executable(benchmarkgrid ${CMAKE_CURRENT_SOURCE_DIR}/YGGridBenchmark.c)
2221

2322
target_link_libraries(benchmark yogacore)
2423
target_link_libraries(benchmarklegacy yogacore)
24+
target_link_libraries(benchmarkgrid yogacore)
2525
target_include_directories(benchmark
2626
PRIVATE
2727
$<BUILD_INTERFACE:${YOGA_ROOT}/lib>)

0 commit comments

Comments
 (0)