Open bennn opened 1 year ago
@vivaan2006 for next time (05/10):
Benchmarks/spectralnorm/untyped/main.py
, copy in spectralnorm and remove all types, make sure it runs with normal pythonBenchmarks/spectralnorm/shallow/main.py
, copy in spectral norm, type updating the types for Static Python
List(T)
chages to List[T]
__static__
float
: make untyped & shallow versions, check than untyped runsGreat job with spectralnorm and float.
Try Espionage
for next time.
For next time, try the c
benchmarks: call_x
and chaos
Though there is a lot of overlap, there are some more benchmarks with PyPy and with pyperformance.
I was actually able to run pyperformance
on Python 3.10.5+cinder, although I had to use release 1.0.8 (so pip install pyperformance==1.0.8
) since the next version introduced changes to a few benchmarks that work only with Python 3.11+.
There was one error related to nargs
, in the msgpack
module. This was "fixed" by changing Packer(**kwargs).pack(o)
to Packer(**kwargs).pack.__call__(o)
in L36 of the module's __init__.py
(the version being that installed by pyperformance
). I think we can include these benchmarks as well to this repository. The pyperformance
module comes with a driver like the one we need.
PS one of the benchmarks in this is django_template
which is a very simple benchmark but it runs (reconfirming that Django indeed can work with static-python).
Ok, both these leads sound great (pyperformance + django)!
Two sources:
TODO: