Skip to content

Commit

Permalink
Several changes:
Browse files Browse the repository at this point in the history
 - http connector: dynamic casts -> (safe) static casts
   (improves performance in TechEmpower benchmarks a little bit)
 - Added TechEmpower benchmarks to examples directory
 - WStandardItemModel: use the correct parent for a move-event
 - Fixing issue #5699
   This is actually a workaround for the root cause: clickable widgets are
   rendered as buttons in plain HTML, so a clickable widget inside of a
   clickable widget becomes a button in a button. These are placed next to
   eachother in the DOM instead of one inside the other, and this situation
   is not rectified when JavaScript becomes enabled.
 - Use application's JavaScript class instead of "Wt" in a few places
 - Fixed grammar mistake in widgetgallery
 - Fixed issue #5677
 - Issue #5698: output doubles with round_js_str in WSlider
  • Loading branch information
RockinRoel committed May 16, 2017
1 parent 27a62e0 commit 319befa
Show file tree
Hide file tree
Showing 25 changed files with 548 additions and 79 deletions.
1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Expand Up @@ -241,6 +241,7 @@ SUBDIRS(
qrlogin
simplechat
style
te-benchmark
treelist
treeview
treeview-dragdrop
Expand Down
22 changes: 22 additions & 0 deletions examples/te-benchmark/CMakeLists.txt
@@ -0,0 +1,22 @@
#
# If you have Wt installed somehwere, you should use the
# installed Wt header files for your own Wt projects.
# e.g. INCLUDE_DIRECTORIES(/usr/local/include)
# instead of the following:
#
INCLUDE_DIRECTORIES(${WT_SOURCE_DIR}/src)

IF(ENABLE_MYSQL AND MYSQL_FOUND)
WT_ADD_EXAMPLE(te-benchmark.wt benchmark.cpp)
TARGET_LINK_LIBRARIES(te-benchmark.wt
debug wtdbod optimized wtdbo
debug wtdbomysqld optimized wtdbomysql)
ENDIF(ENABLE_MYSQL AND MYSQL_FOUND)

IF(ENABLE_POSTGRES AND POSTGRES_FOUND)
WT_ADD_EXAMPLE(te-benchmark-pg.wt benchmark.cpp)
TARGET_COMPILE_DEFINITIONS(te-benchmark-pg.wt PRIVATE BENCHMARK_USE_POSTGRES)
TARGET_LINK_LIBRARIES(te-benchmark-pg.wt
debug wtdbod optimized wtdbo
debug wtdbopostgresd optimized wtdbopostgres)
ENDIF(ENABLE_POSTGRES AND POSTGRES_FOUND)
20 changes: 20 additions & 0 deletions examples/te-benchmark/README.md
@@ -0,0 +1,20 @@
TechEmpower frameworks benchmark implementation
-----------------------------------------------

This example implements the TechEmpower framework benchmark tests for Wt.

How to run
----------

See the README in the parent directory.

Additional arguments to fit the benchmark requirements:

- `-c wt_config.xml`: config that disables logging
- `--accesslog=-`: disables access log
- `--no-compression`: disables zlib compression

What it illustrates
-------------------

How to implement a simple RESTful service in Wt using custom WResources.

0 comments on commit 319befa

Please sign in to comment.