Sign inSign up

lgaborini/benchmarkbash

By lgaborini

Updated almost 9 years ago

Simple /bin/sh CPU benchmark using bc on alpine image

Image
0

10K+

lgaborini/benchmarkbash repository overview

benchmarkBash

Simplest benchmark sh script with minimal requirements (sh, time, bc)

Requirements:
  • /bin/sh
  • bc
  • time shell util
Dockerfile

A Dockerfile is provided.
The image automatically runs the benchmark, then quits.

Hosted also on Docker Hub.

The benchmark

Currently, computation of 5000 digits of pi using bc.
Taken from http://tuxshell.blogspot.ch/2009/08/bc-as-cpu-benchmark.html.

echo "scale=5000; a(1)*4" | bc -l

Tag summary

Content type

Image

Digest

Size

3 MB

Last updated

almost 9 years ago

docker pull lgaborini/benchmarkbash