JSFのポストバック時のレスポンス

http://d.hatena.ne.jp/shin/20090122/p1

JSFのGETの速度は問題がないことを確かめたが、今度はポストバックで試してみた。

JSPは以下のとおり。

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSF Test</title>
    </head>
    <body>
        <h:form id="form">
            <h:inputText  id="text" value="#{testBean.message}"/>
            <h:commandButton id="button" value="submit"/>
        </h:form>
    </body>
</html>
</f:view>

1万回の結果

★URL:http://localhost:8080/JSFTest/faces/welcomeJSF.jsp
平均1.59ms
------------------------------

うーん、意外と重くはないな。JSFは死ぬほど重いだろうと勝手に想像してたがある意味(!)期待はずれだった。

S2JSFとかTeedaとかはどの程度なのだろう。サンプルwarが見当たらなかったので試せず。