Commit 6cdf1abf authored by Zixian Cai's avatar Zixian Cai

Add more module for web frontend

parent 03b999cb
fib:
iterations: 20
benchmark:
name: micro/fib
args:
- 10 # scale factor
- 35
callback:
name: clock
param: "6"
tasks:
rpyc_O3:
language:
name: rpython
backend: c
source: targetfib.py
compiler:
flags:
- --gc=none
environ:
PYPY_C_CLANG_OPT_FLAG: -O3
PYPY_USESSION_BASENAME: fib_rpyc_O3
rpyzebu:
language:
name: rpython
backend: mu
impl: zebu
source: targetfib.py
compiler:
pypydir: $PYPY_MU
environ:
ZEBU_BUILD: release
PYPY_USESSION_DIR: example
PYPY_USESSION_BASENAME: fib_rpyzebu
c_O3:
language: c
source: fib.c
compiler:
flags:
- -O3
c_wasm_O3:
language: wasm
source: fib.c
compiler:
flags:
- -O3
mu_fast:
language:
name: mu
impl: zebu
source: build_fib.c
compiler:
flags:
- -DBUILD_FIB_FAST
web:
executable_groups:
- - rpyc_O3
- rpyzebu
- - c_O3
- c_wasm_O3
- mu_fast
\ No newline at end of file
......@@ -23,8 +23,8 @@ app = Flask(__name__)
app.config['SECRET_KEY'] = settings.WEB_SECRET
@app.route("/visualize", methods=["POST"])
def visualize():
@app.route("/visualize_file", methods=["POST"])
def visualize_file():
if "logfile" not in request.files:
flash("No log file uploaded")
return redirect(url_for("index"))
......@@ -45,6 +45,6 @@ def index():
@click.command()
@click.option("--host", default="localhost")
@click.option("--port", default=5000, type=int)
@click.option("--debug", default=False)
@click.option("--debug", default=False, is_flag=True)
def web(host, port, debug):
app.run(host=host, port=port, debug=debug)
#!/usr/bin/env python3
# Copyright 2017 The Australian National University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env python3
# Copyright 2017 The Australian National University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env python3
# Copyright 2017 The Australian National University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{% extends 'base.html' %}
{% block body %}
<div class="panel panel-primary">
<div class="panel-heading">How fast is Mu?</div>
<div class="panel-body">
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading">What about improvement?</div>
<div class="panel-body">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Visualize log file</div>
<div class="panel-heading">Visualizing Log File</div>
<div class="panel-body">
<form action="{{ url_for('visualize') }}" method="post"
<form action="{{ url_for('visualize_file') }}" method="post"
enctype="multipart/form-data">
<div class="form-group">
<label for="file_1">Log File</label>
......@@ -13,4 +26,5 @@
</form>
</div>
</div>
{% endblock %}
\ No newline at end of file
#!/usr/bin/env python3
# Copyright 2017 The Australian National University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment