cosmopolitan/third_party/mbedtls/speed.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
3.8 KiB
Bash
Raw Normal View History

#!/bin/sh
make -j8 o//third_party/mbedtls || exit
run() {
echo $1
Make numerous improvements - Python static hello world now 1.8mb - Python static fully loaded now 10mb - Python HTTPS client now uses MbedTLS - Python REPL now completes import stmts - Increase stack size for Python for now - Begin synthesizing posixpath and ntpath - Restore Python \N{UNICODE NAME} support - Restore Python NFKD symbol normalization - Add optimized code path for Intel SHA-NI - Get more Python unit tests passing faster - Get Python help() pagination working on NT - Python hashlib now supports MbedTLS PBKDF2 - Make memcpy/memmove/memcmp/bcmp/etc. faster - Add Mersenne Twister and Vigna to LIBC_RAND - Provide privileged __printf() for error code - Fix zipos opendir() so that it reports ENOTDIR - Add basic chmod() implementation for Windows NT - Add Cosmo's best functions to Python cosmo module - Pin function trace indent depth to that of caller - Show memory diagram on invalid access in MODE=dbg - Differentiate stack overflow on crash in MODE=dbg - Add stb_truetype and tools for analyzing font files - Upgrade to UNICODE 13 and reduce its binary footprint - COMPILE.COM now logs resource usage of build commands - Start implementing basic poll() support on bare metal - Set getauxval(AT_EXECFN) to GetModuleFileName() on NT - Add descriptions to strerror() in non-TINY build modes - Add COUNTBRANCH() macro to help with micro-optimizations - Make error / backtrace / asan / memory code more unbreakable - Add fast perfect C implementation of μ-Law and a-Law audio codecs - Make strtol() functions consistent with other libc implementations - Improve Linenoise implementation (see also github.com/jart/bestline) - COMPILE.COM now suppresses stdout/stderr of successful build commands
2021-09-28 05:58:51 +00:00
$1
}
(
run o//third_party/mbedtls/test/test_suite_aes.cbc
run o//third_party/mbedtls/test/test_suite_aes.cfb
run o//third_party/mbedtls/test/test_suite_aes.ecb
run o//third_party/mbedtls/test/test_suite_aes.ofb
run o//third_party/mbedtls/test/test_suite_aes.rest
run o//third_party/mbedtls/test/test_suite_aes.xts
run o//third_party/mbedtls/test/test_suite_asn1parse
run o//third_party/mbedtls/test/test_suite_asn1write
run o//third_party/mbedtls/test/test_suite_base64
run o//third_party/mbedtls/test/test_suite_blowfish
run o//third_party/mbedtls/test/test_suite_chacha20
run o//third_party/mbedtls/test/test_suite_chachapoly
run o//third_party/mbedtls/test/test_suite_cipher.aes
run o//third_party/mbedtls/test/test_suite_cipher.blowfish
run o//third_party/mbedtls/test/test_suite_cipher.ccm
run o//third_party/mbedtls/test/test_suite_cipher.chacha20
run o//third_party/mbedtls/test/test_suite_cipher.chachapoly
run o//third_party/mbedtls/test/test_suite_cipher.des
run o//third_party/mbedtls/test/test_suite_cipher.gcm
run o//third_party/mbedtls/test/test_suite_cipher.misc
run o//third_party/mbedtls/test/test_suite_cipher.nist_kw
run o//third_party/mbedtls/test/test_suite_cipher.null
run o//third_party/mbedtls/test/test_suite_cipher.padding
run o//third_party/mbedtls/test/test_suite_ctr_drbg
run o//third_party/mbedtls/test/test_suite_des
run o//third_party/mbedtls/test/test_suite_dhm
run o//third_party/mbedtls/test/test_suite_ecdh
run o//third_party/mbedtls/test/test_suite_ecdsa
run o//third_party/mbedtls/test/test_suite_ecjpake
run o//third_party/mbedtls/test/test_suite_ecp
run o//third_party/mbedtls/test/test_suite_entropy
run o//third_party/mbedtls/test/test_suite_error
run o//third_party/mbedtls/test/test_suite_gcm.aes128_de
run o//third_party/mbedtls/test/test_suite_gcm.aes128_en
run o//third_party/mbedtls/test/test_suite_gcm.aes192_de
run o//third_party/mbedtls/test/test_suite_gcm.aes192_en
run o//third_party/mbedtls/test/test_suite_gcm.aes256_de
run o//third_party/mbedtls/test/test_suite_gcm.aes256_en
run o//third_party/mbedtls/test/test_suite_gcm.misc
run o//third_party/mbedtls/test/test_suite_hkdf
run o//third_party/mbedtls/test/test_suite_hmac_drbg.misc
run o//third_party/mbedtls/test/test_suite_hmac_drbg.no_reseed
run o//third_party/mbedtls/test/test_suite_hmac_drbg.nopr
run o//third_party/mbedtls/test/test_suite_hmac_drbg.pr
run o//third_party/mbedtls/test/test_suite_md
run o//third_party/mbedtls/test/test_suite_mdx
run o//third_party/mbedtls/test/test_suite_memory_buffer_alloc
run o//third_party/mbedtls/test/test_suite_mpi
run o//third_party/mbedtls/test/test_suite_net
run o//third_party/mbedtls/test/test_suite_nist_kw
run o//third_party/mbedtls/test/test_suite_oid
run o//third_party/mbedtls/test/test_suite_pem
run o//third_party/mbedtls/test/test_suite_pk
run o//third_party/mbedtls/test/test_suite_pkcs1_v15
run o//third_party/mbedtls/test/test_suite_pkcs1_v21
run o//third_party/mbedtls/test/test_suite_pkcs5
run o//third_party/mbedtls/test/test_suite_pkparse
run o//third_party/mbedtls/test/test_suite_pkwrite
run o//third_party/mbedtls/test/test_suite_poly1305
run o//third_party/mbedtls/test/test_suite_random
run o//third_party/mbedtls/test/test_suite_rsa
run o//third_party/mbedtls/test/test_suite_shax
run o//third_party/mbedtls/test/test_suite_ssl
run o//third_party/mbedtls/test/test_suite_timing
run o//third_party/mbedtls/test/test_suite_version
run o//third_party/mbedtls/test/test_suite_x509parse
run o//third_party/mbedtls/test/test_suite_x509write
) | o//tool/build/deltaify2 | sort -n | tee speed.txt
mkdir -p ~/speed/mbedtls
cp speed.txt ~/speed/mbedtls/$(date +%Y-%m-%d-%H-%H).txt