Designed to stress the CPU.
export PLAINTEXT=test
export HASHED=$(curl -s http://127.0.0.1:8080/function/bcrypt \
--data $PLAINTEXT)
echo Hash: $HASHED
echo Hash validates against plaintext? $(curl -s http://127.0.0.1:8080/function/bcrypt/decode --data "$PLAINTEXT $HASHED")Configure via sleep_duration environment variable.
Ideal for testing capacity based scaling.
Fast Node.js function ideal for testing RPS-based scaling.