Campbell Barton
e8da6131fd
Move copyright text to SPDX-FileCopyrightText or set to the Blender Foundation so "make check_licenses" now runs without warnings.
26 lines
602 B
Python
26 lines
602 B
Python
# SPDX-FileCopyrightText: 2017-2022 Blender Foundation
|
|
#
|
|
# 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())
|