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

python base64 improvement #172

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions base64/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ if [ ! -d aklomp-base64-ssse ]; then
fi
gcc --std=c99 -O3 test-aklomp.c -I aklomp-base64-ssse/include/ aklomp-base64-ssse/lib/libbase64.o -o base64_c_ak_ssse
wget -qO - https://cpanmin.us | perl - -L perllib MIME::Base64::Perl
pip install pybase64

7 changes: 6 additions & 1 deletion base64/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import base64, time
try:
#pip install pybase64 is required to use the fast base64 variant.
import pybase64 as base64
except ImportError:
import base64
import time

STR_SIZE = 10000000
TRIES = 100
Expand Down