cosmopolitan/examples
Justine Tunney 398f0c16fb Add SNI support to redbean and improve SSL perf
This change makes SSL virtual hosting possible. You can now load
multiple certificates for multiple domains and redbean will just
figure out which one to use, even if you only have 1 ip address.
You can also use a jumbo certificate that lists all your domains
in the the subject alternative names.

This change also makes performance improvements to MbedTLS. Here
are some benchmarks vs. cc1920749e

                                   BEFORE    AFTER   (microsecs)
suite_ssl.com                     2512881   191738 13.11x faster
suite_pkparse.com                   36291     3295 11.01x faster
suite_x509parse.com                854669   120293  7.10x faster
suite_pkwrite.com                    6549     1265  5.18x faster
suite_ecdsa.com                     53347    18778  2.84x faster
suite_pk.com                        49051    18717  2.62x faster
suite_ecdh.com                      19535     9502  2.06x faster
suite_shax.com                      15848     7965  1.99x faster
suite_rsa.com                      353257   184828  1.91x faster
suite_x509write.com                162646    85733  1.90x faster
suite_ecp.com                       20503    11050  1.86x faster
suite_hmac_drbg.no_reseed.com       19528    11417  1.71x faster
suite_hmac_drbg.nopr.com            12460     8010  1.56x faster
suite_mpi.com                      687124   442661  1.55x faster
suite_hmac_drbg.pr.com              11890     7752  1.53x faster

There aren't any special tricks to the performance imporvements.
It's mostly due to code cleanup, assembly and intel instructions
like mulx, adox, and adcx.
2021-07-23 13:56:13 -07:00
..
package Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
auto-launch-gdb-on-crash.c Make improvements 2020-12-01 03:43:40 -08:00
breakpoint.c Initial import 2020-06-15 07:18:57 -07:00
certapp.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
cp.c Add smoke test for timezone loading (#114) 2021-03-08 11:46:04 -08:00
cplusplus.cc Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
crashreport.c Make examples folder somewhat more focused 2021-03-05 06:09:12 -08:00
ctrlc.c Add smoke test for timezone loading (#114) 2021-03-08 11:46:04 -08:00
curl.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
date.c Add smoke test for timezone loading (#114) 2021-03-08 11:46:04 -08:00
echo.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
examples.mk Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
fastdiv.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
fastmod.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
forkrand.c Make improvements 2020-12-01 03:43:40 -08:00
generalized-automatic-datastructure-printing.c Initial import 2020-06-15 07:18:57 -07:00
getrandom.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
gui.c Make examples folder somewhat more focused 2021-03-05 06:09:12 -08:00
hangman.c Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
hello.c Make examples folder somewhat more focused 2021-03-05 06:09:12 -08:00
hello2.c Trim down executable sizes 2021-02-11 08:37:18 -08:00
hello3.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
hellolua.c Add Hello World example for LUA C API (#97) 2021-03-08 14:15:59 -08:00
hellolua.lua Add Hello World example for LUA C API (#97) 2021-03-08 14:15:59 -08:00
hertz.c Fix bugs and make improvements 2021-05-01 05:11:35 -07:00
hostname.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
img.c Add example for printing <img> tag 2021-07-04 15:41:43 -07:00
ispell.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kilo.c Improve dead code elimination 2021-02-08 04:04:42 -08:00
life.c Initial import 2020-06-15 07:18:57 -07:00
ls.c Add smoke test for timezone loading (#114) 2021-03-08 11:46:04 -08:00
lstime.c Add smoke test for timezone loading (#114) 2021-03-08 11:46:04 -08:00
nc.c Add half close flag to netcat example 2021-06-15 11:24:24 -07:00
nesemu1.cc Add smoke test for timezone loading (#114) 2021-03-08 11:46:04 -08:00
panels.c Make more major improvements to redbean 2021-04-20 19:14:21 -07:00
printargs.c Improve system call polyfills 2021-03-08 10:07:02 -08:00
printprimes.c Fold conv package into fmt 2020-12-09 16:52:00 -08:00
rusage.c Add SSL to redbean 2021-06-24 13:20:50 -07:00
seq.c Fix sigsuspend() and sigprocmask() on OpenBSD 2021-02-05 12:19:43 -08:00
sleep.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
stat.c Add smoke test for timezone loading (#114) 2021-03-08 11:46:04 -08:00
stringbuffer.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
system.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
touch.c Improve build system 2021-02-19 23:03:34 -08:00
ttyinfo.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
ucontext-sigfpe-recovery.c Improve signal handling and math 2021-02-25 18:33:33 -08:00
unbourne.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
walk.c Add SSL to redbean 2021-06-24 13:20:50 -07:00
x86split.c Make examples folder somewhat more focused 2021-03-05 06:09:12 -08:00