Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test.py « ant_landscape - git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 39d060c45d01201567e78a748e5c21c5d90f91f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SPDX-License-Identifier: GPL-2.0-or-later

from numpy import *

if __name__ == '__main__':
    # This only works when this script is loaded as main, or
    # run directly from the ant_landscape directory.
    from stats import Stats

    stats = Stats()

    a = zeros(10000000)
    print(stats.time())
    print(stats.memory())
    a = sin(a)
    print(stats.time())
    print(stats.memory())
    a = cos(a)
    print(stats.time())
    print(stats.memory())
    a = cos(a)**2+sin(a)**2
    print(stats.time())
    print(stats.memory())