Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Python Shorts

Some of the code I use for my Python Youtube Shorts

Numpy Vs Python & Numpy Vs JIT

These two folders contain code for a two-part short collection measuring the performance of NumPy vs Vanilla Python and NumPy vs Python using Just In Time (JIT) Compilation

These will make arrays from 10 - 100,000,000 elements in size working in powers of 10

Then the two sum functions are timed on how quick they can add all the elements in each array

Then matplotlib plots the results

Requirements

  • Numba (For JIT decorator)
  • NumPy
  • Matplotlib (For plotting)

You can use pip for this, e.g: pip install numpy

About

This is some of the Python Code I use on my Youtube Channel

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages