Sun Position: update translation
[blender-addons.git] / ant_landscape / test.py
blob3164ecdfd612e5a65812b3002fcf74631d70172a
1 # SPDX-FileCopyrightText: 2017-2022 Blender Foundation
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 from numpy import *
7 if __name__ == '__main__':
8 # This only works when this script is loaded as main, or
9 # run directly from the ant_landscape directory.
10 from stats import Stats
12 stats = Stats()
14 a = zeros(10000000)
15 print(stats.time())
16 print(stats.memory())
17 a = sin(a)
18 print(stats.time())
19 print(stats.memory())
20 a = cos(a)
21 print(stats.time())
22 print(stats.memory())
23 a = cos(a) ** 2 + sin(a) ** 2
24 print(stats.time())
25 print(stats.memory())