go-python-perf

command module
v0.0.0-...-6636cb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

Simple performance tests

Install PyPy

Download a pre-built PyPy

dnf install bzip2
wget https://downloads.python.org/pypy/pypy3.10-v7.3.12-linux64.tar.bz2
tar -xvf pypy3.10-v7.3.12-linux64.tar.bz2

Tests

CPython
⇨  time python performance.py
Done

real	0m47.680s
user	0m47.615s
sys	0m0.006s
PyPy
⇨  time ./pypy3.10-v7.3.12-linux64/bin/pypy performance.py
Done

real	0m0.462s
user	0m0.449s
sys	0m0.012s
Go
⇨  time go run performance.go
Done

real	0m0.281s
user	0m0.288s
sys	0m0.065s
Compiled Go
⇨  time ./perf
Done

real	0m0.216s
user	0m0.213s
sys	0m0.003s

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL