Пример #1
0
def _j3(port=8080):
    import techempower_frameworks_benchmark as tefb
    server = _async.server('0.0.0.0', port)
    _async.register(transport=server, protocol=tefb.JsonGmtimeHttpServerSlow)
    #_async.run_once()
    return server
Пример #2
0
def _j4(port=8080):
    import techempower_frameworks_benchmark as tefb
    server = _async.server('0.0.0.0', port)
    _async.register(transport=server, protocol=tefb.TestSync)
    #_async.run_once()
    return server
Пример #3
0
def _tefb_json(port=8080):
    import techempower_frameworks_benchmark as tefb
    server = _async.server('0.0.0.0', port)
    _async.register(transport=server, protocol=tefb.BaseHttpServer)
    #_async.run_once()
    return server