Download or view basetiming.frink in plain text format
// Program to test efficiency of various base conversions.
limit = 10
for j=1 to 2
{
for b=2 to 6 step .5
{
bits = floor[10^b]
start = now[]
for i=1 to limit
{
n = randomBits[bits]
//a = "$n" // toString[n] // Coerce to string
a = newToString[n] // Coerce to string
}
end = now[]
println[ bits + "\t" + format[limit/(end-start), s^-1, 4]]
}
}
Download or view basetiming.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 20217 days, 23 hours, 16 minutes ago.