Skip to content

Instantly share code, notes, and snippets.

@michaeljclark
Created February 25, 2022 23:41
Show Gist options
  • Save michaeljclark/3c2ffdf66ad0f350f48a380f562e91e8 to your computer and use it in GitHub Desktop.
Save michaeljclark/3c2ffdf66ad0f350f48a380f562e91e8 to your computer and use it in GitHub Desktop.
benchmark results from crefl bench_asn1 benchmark for strtod, snprintf, vlu, leb, vf128, asn1 float and integer encoding
# crefl serialization benchmarks run on Intel Core i9-7980XE CPU
benchmark count time(s) op(ns) ops/s MiB/s
------------------------ ------- ------- ------- ------------- ---------
[ 0] f64-read-strtod-dec 1M 0.11 109.65 9,119,975 69.580
[ 1] f32-read-strtof-dec 1M 0.09 86.43 11,570,658 44.139
[ 2] f32-write-snprintf-dec 1M 0.14 143.62 6,962,688 26.561
[ 3] f64-write-snprintf-dec 1M 0.20 203.81 4,906,604 37.434
[ 4] f64-asn.1-read-byptr 1M 0.03 30.61 32,667,961 249.237
[ 5] f64-asn.1-read-byval 1M 0.03 28.96 34,532,112 263.459
[ 6] f64-asn.1-write-byptr 1M 0.03 32.09 31,158,786 237.723
[ 7] f64-asn.1-write-byval 1M 0.03 33.47 29,880,744 227.972
[ 8] f32-vf128-read-byptr 1M 0.02 19.43 51,467,879 196.334
[ 9] f32-vf128-read-byval 1M 0.02 18.96 52,750,100 201.226
[10] f32-vf128-write-byptr 1M 0.02 16.44 60,816,075 231.995
[11] f32-vf128-write-byval 1M 0.02 17.67 56,592,077 215.882
[12] f64-vf128-read-byptr 1M 0.02 17.95 55,704,431 424.991
[13] f64-vf128-read-byval 1M 0.02 18.41 54,327,739 414.488
[14] f64-vf128-write-byptr 1M 0.02 17.02 58,739,576 448.147
[15] f64-vf128-write-byval 1M 0.02 16.17 61,830,357 471.728
[16] u32-read-atoi-dec 1M 0.02 21.74 45,997,681 175.467
[17] u64-read-atoll-dec 1M 0.03 32.71 30,567,244 233.210
[18] u64-read-strtoull-dec 1M 0.03 33.76 29,619,646 225.980
[19] u64-write-snprintf-dec 1M 0.06 60.27 16,592,144 126.588
[20] u64-asn1.1-read-byptr 1M 0.01 13.19 75,837,762 578.596
[21] u64-asn1.1-read-byval 1M 0.01 12.96 77,167,728 588.743
[22] u64-asn1.1-write-byptr 1M 0.01 8.76 114,104,203 870.546
[23] u64-asn1.1-write-byval 1M 0.01 8.64 115,750,962 883.110
[24] u64-leb128-read-byptr 1M 0.01 11.31 88,435,360 674.708
[25] u64-leb128-read-byval 1M 0.01 9.82 101,880,240 777.285
[26] u64-leb128-write-byptr 1M 0.01 8.11 123,296,079 940.674
[27] u64-leb128-write-byval 1M 0.01 7.61 131,412,071 1002.595
[28] u64-vlu8-read-byptr 1M 0.01 8.43 118,674,416 905.414
[29] u64-vlu8-read-byval 1M 0.01 8.64 115,750,493 883.106
[30] u64-vlu8-write-byptr 1M 0.01 5.79 172,588,970 1316.749
[31] u64-vlu8-write-byval 1M 0.01 6.59 151,692,194 1157.320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment