repo.or.cz
/
blender-addons.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into blender2.8
[blender-addons.git]
/
ant_landscape
/
test.py
blob
d56815f2206d08cb0d980e3da31f47ea8a346654
1
from
numpy
import
*
2
3
if
__name__
==
'__main__'
:
4
# This only works when this script is loaded as main, or
5
# run directly from the ant_landscape directory.
6
from
stats
import
Stats
7
8
stats
=
Stats
()
9
10
a
=
zeros
(
10000000
)
11
print
(
stats
.
time
())
12
print
(
stats
.
memory
())
13
a
=
sin
(
a
)
14
print
(
stats
.
time
())
15
print
(
stats
.
memory
())
16
a
=
cos
(
a
)
17
print
(
stats
.
time
())
18
print
(
stats
.
memory
())
19
a
=
cos
(
a
)**
2
+
sin
(
a
)**
2
20
print
(
stats
.
time
())
21
print
(
stats
.
memory
())