@@ -0,0 +1,1716 @@
+#    Copyright (C) 2015 Yahoo! Inc. All Rights Reserved.%0A#%0A#    Licensed under the Apache License, Version 2.0 (the %22License%22); you may%0A#    not use this file except in compliance with the License. You may obtain%0A#    a copy of the License at%0A#%0A#         http://www.apache.org/licenses/LICENSE-2.0%0A#%0A#    Unless required by applicable law or agreed to in writing, software%0A#    distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A#    License for the specific language governing permissions and limitations%0A#    under the License.%0A%0Afrom six.moves import range as compat_range%0A%0Afrom taskflow import engines%0Afrom taskflow.patterns import linear_flow as lf%0Afrom taskflow import task%0Afrom taskflow.types import timing%0A%0A%0Aclass TimeIt(object):%0A    def __init__(self, name):%0A        self.watch = timing.StopWatch()%0A        self.name = name%0A%0A    def __enter__(self):%0A        self.watch.restart()%0A%0A    def __exit__(self, exc_tp, exc_v, exc_tb):%0A        self.watch.stop()%0A        duration = self.watch.elapsed()%0A        print(%22Took %250.3f seconds to run '%25s'%22 %25 (duration, self.name))%0A%0A%0Aclass DummyTask(task.Task):%0A    def execute(self):%0A        pass%0A%0A%0Adef main():%0A    dummy_am = 100%0A    with TimeIt(%22building%22):%0A        f = lf.Flow(%22root%22)%0A        for i in compat_range(0, dummy_am):%0A            f.add(DummyTask(name=%22dummy_%25s%22 %25 i))%0A    with TimeIt(%22loading%22):%0A        e = engines.load(f)%0A    with TimeIt(%22compiling%22):%0A        e.compile()%0A    with TimeIt(%22preparing%22):%0A        e.prepare()%0A    with TimeIt(%22validating%22):%0A        e.validate()%0A    with TimeIt(%22running%22):%0A        e.run()%0A%0A%0Aif __name__ == %22__main__%22:%0A    main()%0A

Add speed-test tools script