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
glTF exporter: Manage all 4 types of Vertex Colors (corner/point - byte/float)
[blender-addons.git]
/
ant_landscape
/
test.py
blob
39d060c45d01201567e78a748e5c21c5d90f91f3
1
# SPDX-License-Identifier: GPL-2.0-or-later
2
3
from
numpy
import
*
4
5
if
__name__
==
'__main__'
:
6
# This only works when this script is loaded as main, or
7
# run directly from the ant_landscape directory.
8
from
stats
import
Stats
9
10
stats
=
Stats
()
11
12
a
=
zeros
(
10000000
)
13
print
(
stats
.
time
())
14
print
(
stats
.
memory
())
15
a
=
sin
(
a
)
16
print
(
stats
.
time
())
17
print
(
stats
.
memory
())
18
a
=
cos
(
a
)
19
print
(
stats
.
time
())
20
print
(
stats
.
memory
())
21
a
=
cos
(
a
)**
2
+
sin
(
a
)**
2
22
print
(
stats
.
time
())
23
print
(
stats
.
memory
())