blender-addons/ant_landscape/test.py
Campbell Barton a5587f5223 File headers: use SPDX license identifiers
Some files needed to be changed manually.
2022-02-14 14:47:00 +11:00

24 lines
539 B
Python

# 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())