Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import issue? #9

Open
Bchass opened this issue May 27, 2024 · 0 comments
Open

Import issue? #9

Bchass opened this issue May 27, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Bchass
Copy link
Owner

Bchass commented May 27, 2024

Describe the bug
Something is off with how benchmark.py is reading in tinynumpy. Specifically, in tinynumpy.py L52 and L53.

To Reproduce
Steps to reproduce the behavior:

  1. python3 benchmark.py

Expected behavior

=== MEMORY ====
Memory for floats 0-M:            30 B
Memory for ints 0-M:              26 B
Memory for ints 0-255:            0 B
Memory for regular object:        78 B
Memory for object with slots:     45 B
Memory for     Numpy arr size 1:  129 B
Memory for Tinynumpy arr size 1:  272 B
Memory for     Numpy arr size M:  7.64 MiB
Memory for Tinynumpy arr size M:  22.94 MiB
=== SPEED ====
Time for     numpy sum 10k:     2.36 us  (100000 iters)
Time for tinynumpy sum 10k:     0.47 ms  (1000 iters)
Time for     numpy max 10k:     1.41 us  (1000000 iters)
Time for tinynumpy max 10k:     0.53 ms  (1000 iters)
Time for     numpy sum 1M:      0.19 ms  (10000 iters)
Time for tinynumpy sum 1M:      50.85 ms  (10 iters)
Time for     numpy max 1M:      0.11 ms  (10000 iters)
Time for tinynumpy max 1M:      56.20 ms  (10 iters)

Screenshots

import tinynumpy.tinylinalg as linalg
ModuleNotFoundError: No module named 'tinynumpy.tinylinalg'; 'tinynumpy' is not a package

Additional context
N/A

@Bchass Bchass added bug Something isn't working good first issue Good for newcomers labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant