 let foxResult = secBase32Encode(data: foxData)
 let n = 1000
 compareEncoding(from: foxData, to: foxResult, times: n)
+print()
+try compareDecoding(from: foxResult, to: foxData, times: n)
 
 /*
 let c = 25


func secBase32Encode(data: Data) -> String {
    let encoder = SecEncodeTransformCreate(kSecBase32Encoding, nil)!
    SecTransformSetAttribute(encoder, kSecTransformInputAttributeName, data as CFTypeRef, nil);
    let encodedData = SecTransformExecute(encoder, nil) as! CFData
    return String(data: encodedData as Data, encoding: .ascii)!
}

func fox(times: Int) -> String {

import Foundation
import Base32

func measureBlock(_ block: () throws -> Void) rethrows -> CFTimeInterval {
    let startTime = CFAbsoluteTimeGetCurrent()
    try block()
    let endTime = CFAbsoluteTimeGetCurrent()
    return endTime - startTime
}
