Skip to content

Instantly share code, notes, and snippets.

@Tornhoof
Last active September 28, 2017 08:49
Show Gist options
  • Save Tornhoof/f9c34924e42acc2e88719c86a8c1628a to your computer and use it in GitHub Desktop.
Save Tornhoof/f9c34924e42acc2e88719c86a8c1628a to your computer and use it in GitHub Desktop.
Jil vs. Utf8Json Benchmark (without string conversion for Utf8Json)

tl;dr: With more realistic models with diverse length and types there is no clear winner. For allocations Utf8Json wins. This run does not convert to string for Utf8Json but returns a byte-array and uses a byte-array for deserialization too. Jil remains with strings.

Input: The models from Jil.Benchmark: https://github.com/kevin-montrose/Jil/tree/master/Benchmark/Models and ported it (with a few changes) to Benchmark.NET https://github.com/Tornhoof/Jil/tree/master/Benchmark

BenchmarkDotNet=v0.10.9, OS=Windows 10 Redstone 2 (10.0.15063)
Processor=Intel Core i7-4790K CPU 4.00GHz (Haswell), ProcessorCount=8
Frequency=3906248 Hz, Resolution=256.0001 ns, Timer=TSC
  [Host]     : .NET Framework 4.7 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.2110.0
  DefaultJob : .NET Framework 4.7 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.2110.0

Method Mean Error StdDev Gen 0 Allocated
DeserializeAccessTokenWithJilSerializer 602.4 ns 0.5471 ns 0.5118 ns 0.0811 344 B
DeserializeAccessTokenWithUtf8JsonSerializer 690.5 ns 0.7353 ns 0.6878 ns 0.0582 248 B
DeserializeAccountMergeWithJilSerializer 485.5 ns 0.6746 ns 0.5980 ns 0.0343 144 B
DeserializeAccountMergeWithUtf8JsonSerializer 439.3 ns 1.7493 ns 1.6363 ns 0.0110 48 B
DeserializeAnswerWithJilSerializer 8,973.9 ns 86.9082 ns 81.2940 ns 0.5951 2528 B
DeserializeAnswerWithUtf8JsonSerializer 8,669.1 ns 103.7102 ns 97.0106 ns 0.4730 2048 B
DeserializeBadgeCountWithJilSerializer 310.0 ns 0.2043 ns 0.1811 ns 0.0319 136 B
DeserializeBadgeCountWithUtf8JsonSerializer 272.0 ns 4.6120 ns 4.3140 ns 0.0091 40 B
DeserializeBadgeWithJilSerializer 1,807.7 ns 3.7601 ns 3.3332 ns 0.1392 584 B
DeserializeBadgeWithUtf8JsonSerializer 1,945.2 ns 5.3566 ns 5.0105 ns 0.1144 488 B
DeserializeClosedDetailsWithJilSerializer 2,362.8 ns 25.2208 ns 23.5916 ns 0.1869 800 B
DeserializeClosedDetailsWithUtf8JsonSerializer 2,175.6 ns 8.3560 ns 7.8162 ns 0.1640 704 B
DeserializeCommentWithJilSerializer 3,012.8 ns 6.6343 ns 6.2057 ns 0.2556 1080 B
DeserializeCommentWithUtf8JsonSerializer 3,398.8 ns 6.9594 ns 5.4334 ns 0.1869 792 B
DeserializeErrorWithJilSerializer 354.0 ns 4.0386 ns 3.7778 ns 0.0548 232 B
DeserializeErrorWithUtf8JsonSerializer 359.9 ns 6.1243 ns 5.4291 ns 0.0319 136 B
DeserializeEventWithJilSerializer 621.8 ns 0.1804 ns 0.1687 ns 0.0601 256 B
DeserializeEventWithUtf8JsonSerializer 797.8 ns 2.3993 ns 2.1269 ns 0.0372 160 B
DeserializeFlagOptionWithJilSerializer 1,652.4 ns 1.1726 ns 0.8478 ns 0.1545 656 B
DeserializeFlagOptionWithUtf8JsonSerializer 1,847.9 ns 4.4306 ns 4.1444 ns 0.1087 464 B
DeserializeInboxItemWithJilSerializer 4,599.7 ns 13.9268 ns 12.3457 ns 0.4196 1768 B
DeserializeInboxItemWithUtf8JsonSerializer 4,557.3 ns 9.7108 ns 9.0835 ns 0.3967 1672 B
DeserializeInfoWithJilSerializer 5,542.2 ns 66.7710 ns 62.4576 ns 0.4120 1744 B
DeserializeInfoWithUtf8JsonSerializer 6,428.4 ns 7.3318 ns 6.4995 ns 0.4272 1816 B
DeserializeMigrationInfoWithJilSerializer 3,857.5 ns 14.4077 ns 13.4770 ns 0.3662 1568 B
DeserializeMigrationInfoWithUtf8JsonSerializer 4,402.6 ns 5.6979 ns 4.4485 ns 0.3433 1472 B
DeserializeMobileAssociationBonusWithJilSerializer 442.2 ns 2.1425 ns 1.7891 ns 0.0472 200 B
DeserializeMobileAssociationBonusWithUtf8JsonSerializer 423.6 ns 5.9790 ns 5.3003 ns 0.0243 104 B
DeserializeMobileBadgeAwardWithJilSerializer 981.7 ns 1.3712 ns 1.2155 ns 0.0916 392 B
DeserializeMobileBadgeAwardWithUtf8JsonSerializer 1,075.8 ns 3.6664 ns 3.0616 ns 0.0687 296 B
DeserializeMobileBannerAdImageWithJilSerializer 300.9 ns 0.1656 ns 0.1549 ns 0.0434 184 B
DeserializeMobileBannerAdImageWithUtf8JsonSerializer 334.4 ns 0.2179 ns 0.2038 ns 0.0205 88 B
DeserializeMobileBannerAdWithJilSerializer 798.4 ns 5.7683 ns 5.3957 ns 0.0906 384 B
DeserializeMobileBannerAdWithUtf8JsonSerializer 758.7 ns 1.5691 ns 1.4678 ns 0.0677 288 B
DeserializeMobileCareersJobAdWithJilSerializer 677.6 ns 0.6937 ns 0.6489 ns 0.0868 368 B
DeserializeMobileCareersJobAdWithUtf8JsonSerializer 754.2 ns 1.0368 ns 0.9698 ns 0.0639 272 B
DeserializeMobileCommunityBulletinWithJilSerializer 1,527.8 ns 7.7371 ns 6.8588 ns 0.1392 584 B
DeserializeMobileCommunityBulletinWithUtf8JsonSerializer 1,575.2 ns 3.1134 ns 2.5999 ns 0.1144 488 B
DeserializeMobileFeedWithJilSerializer 23,837.4 ns 22.1778 ns 20.7451 ns 1.3428 5712 B
DeserializeMobileFeedWithUtf8JsonSerializer 14,971.6 ns 50.0759 ns 44.3910 ns 1.2207 5136 B
DeserializeMobileInboxItemWithJilSerializer 1,115.5 ns 1.2588 ns 1.0511 ns 0.1087 456 B
DeserializeMobileInboxItemWithUtf8JsonSerializer 1,093.0 ns 0.6447 ns 0.5715 ns 0.0839 360 B
DeserializeMobilePrivilegeWithJilSerializer 928.0 ns 16.9867 ns 15.8894 ns 0.0887 376 B
DeserializeMobilePrivilegeWithUtf8JsonSerializer 884.9 ns 1.0665 ns 0.8906 ns 0.0648 280 B
DeserializeMobileQuestionWithJilSerializer 1,284.1 ns 1.9458 ns 1.8201 ns 0.1087 464 B
DeserializeMobileQuestionWithUtf8JsonSerializer 1,142.1 ns 1.2949 ns 1.1479 ns 0.0858 368 B
DeserializeMobileRepChangeWithJilSerializer 591.6 ns 0.5895 ns 0.5514 ns 0.0734 312 B
DeserializeMobileRepChangeWithUtf8JsonSerializer 642.5 ns 1.2142 ns 1.1358 ns 0.0515 216 B
DeserializeMobileUpdateNoticeWithJilSerializer 325.7 ns 1.2344 ns 1.1547 ns 0.0548 232 B
DeserializeMobileUpdateNoticeWithUtf8JsonSerializer 365.5 ns 4.6136 ns 4.3156 ns 0.0319 136 B
DeserializeNetworkUserWithJilSerializer 1,632.0 ns 2.2654 ns 2.1190 ns 0.0820 352 B
DeserializeNetworkUserWithUtf8JsonSerializer 1,760.5 ns 0.9657 ns 0.9033 ns 0.0591 256 B
DeserializeNoticeWithJilSerializer 510.9 ns 7.9913 ns 7.4751 ns 0.0453 192 B
DeserializeNoticeWithUtf8JsonSerializer 469.1 ns 0.1356 ns 0.1133 ns 0.0219 96 B
DeserializeNotificationWithJilSerializer 4,287.6 ns 12.2485 ns 11.4573 ns 0.3891 1640 B
DeserializeNotificationWithUtf8JsonSerializer 4,317.6 ns 3.1782 ns 2.6539 ns 0.3662 1544 B
DeserializeOriginalQuestionWithJilSerializer 457.8 ns 5.4189 ns 5.0688 ns 0.0453 192 B
DeserializeOriginalQuestionWithUtf8JsonSerializer 437.4 ns 1.0135 ns 0.8463 ns 0.0224 96 B
DeserializePostWithJilSerializer 7,670.2 ns 16.0550 ns 15.0178 ns 0.5341 2272 B
DeserializePostWithUtf8JsonSerializer 7,752.1 ns 3.1154 ns 2.9141 ns 0.4120 1792 B
DeserializePrivilegeWithJilSerializer 346.5 ns 0.5476 ns 0.4275 ns 0.0548 232 B
DeserializePrivilegeWithUtf8JsonSerializer 418.1 ns 1.3870 ns 1.1582 ns 0.0319 136 B
DeserializeQuestionTimelineWithJilSerializer 2,987.5 ns 6.0140 ns 5.6255 ns 0.2289 968 B
DeserializeQuestionTimelineWithUtf8JsonSerializer 3,301.9 ns 30.6167 ns 28.6389 ns 0.1602 680 B
DeserializeQuestionWithJilSerializer 40,877.2 ns 778.1324 ns 727.8655 ns 2.2583 9480 B
DeserializeQuestionWithUtf8JsonSerializer 29,721.8 ns 42.4311 ns 39.6901 ns 1.9226 8136 B
DeserializeRelatedSiteWithJilSerializer 402.9 ns 3.9298 ns 3.6759 ns 0.0682 288 B
DeserializeRelatedSiteWithUtf8JsonSerializer 491.3 ns 0.6917 ns 0.6470 ns 0.0448 192 B
DeserializeReputationHistoryWithJilSerializer 696.5 ns 4.4124 ns 3.9114 ns 0.0372 160 B
DeserializeReputationHistoryWithUtf8JsonSerializer 690.8 ns 0.5738 ns 0.5086 ns 0.0143 64 B
DeserializeReputationWithJilSerializer 848.0 ns 0.9453 ns 0.8842 ns 0.0658 280 B
DeserializeReputationWithUtf8JsonSerializer 1,031.5 ns 1.5577 ns 1.4571 ns 0.0420 184 B
DeserializeRevisionWithJilSerializer 2,952.6 ns 18.5620 ns 17.3629 ns 0.2556 1088 B
DeserializeRevisionWithUtf8JsonSerializer 3,213.5 ns 23.1925 ns 21.6943 ns 0.2327 992 B
DeserializeSearchExcerptWithJilSerializer 4,462.7 ns 12.7049 ns 11.8842 ns 0.3052 1304 B
DeserializeSearchExcerptWithUtf8JsonSerializer 4,630.2 ns 10.8221 ns 9.0370 ns 0.2365 1016 B
DeserializeShallowUserWithJilSerializer 1,004.9 ns 2.0679 ns 1.9343 ns 0.0839 360 B
DeserializeShallowUserWithUtf8JsonSerializer 1,206.0 ns 7.8981 ns 7.0015 ns 0.0610 264 B
DeserializeSiteWithJilSerializer 3,300.4 ns 6.2708 ns 5.8657 ns 0.3586 1520 B
DeserializeSiteWithUtf8JsonSerializer 3,553.3 ns 39.8177 ns 37.2455 ns 0.3357 1424 B
DeserializeStylingWithJilSerializer 382.4 ns 0.1980 ns 0.1852 ns 0.0663 280 B
DeserializeStylingWithUtf8JsonSerializer 408.2 ns 1.5041 ns 1.4070 ns 0.0434 184 B
DeserializeSuggestedEditWithJilSerializer 2,699.3 ns 7.7444 ns 7.2441 ns 0.1831 776 B
DeserializeSuggestedEditWithUtf8JsonSerializer 2,908.6 ns 9.8584 ns 9.2215 ns 0.1602 680 B
DeserializeTagScoreWithJilSerializer 1,333.3 ns 3.1931 ns 2.9868 ns 0.0935 400 B
DeserializeTagScoreWithUtf8JsonSerializer 1,293.1 ns 1.7750 ns 1.6603 ns 0.0725 304 B
DeserializeTagSynonymWithJilSerializer 789.8 ns 0.4348 ns 0.4067 ns 0.0620 264 B
DeserializeTagSynonymWithUtf8JsonSerializer 777.4 ns 0.7037 ns 0.6583 ns 0.0401 168 B
DeserializeTagWikiWithJilSerializer 2,813.6 ns 5.5122 ns 5.1561 ns 0.2480 1048 B
DeserializeTagWikiWithUtf8JsonSerializer 3,401.4 ns 3.7321 ns 3.4910 ns 0.1793 760 B
DeserializeTagWithJilSerializer 926.0 ns 3.3492 ns 2.7968 ns 0.0887 376 B
DeserializeTagWithUtf8JsonSerializer 999.4 ns 1.2061 ns 1.0692 ns 0.0648 280 B
DeserializeTopTagWithJilSerializer 610.6 ns 9.6087 ns 8.9880 ns 0.0486 208 B
DeserializeTopTagWithUtf8JsonSerializer 570.0 ns 0.8167 ns 0.7639 ns 0.0257 112 B
DeserializeUserTimelineWithJilSerializer 1,121.0 ns 3.4337 ns 3.2119 ns 0.0820 352 B
DeserializeUserTimelineWithUtf8JsonSerializer 1,341.0 ns 12.3954 ns 11.5947 ns 0.0591 256 B
DeserializeUserWithJilSerializer 4,049.9 ns 19.0103 ns 17.7822 ns 0.1602 696 B
DeserializeUserWithUtf8JsonSerializer 3,444.5 ns 2.0636 ns 1.7232 ns 0.1411 600 B
DeserializeWritePermissionWithJilSerializer 662.9 ns 0.7557 ns 0.7068 ns 0.0515 216 B
DeserializeWritePermissionWithUtf8JsonSerializer 628.8 ns 1.6297 ns 1.5244 ns 0.0277 120 B
SerializeAccessTokenWithJilSerializer 723.4 ns 9.5439 ns 8.9273 ns 0.2241 944 B
SerializeAccessTokenWithUtf8JsonSerializer 487.9 ns 0.4212 ns 0.3939 ns 0.0353 152 B
SerializeAccountMergeWithJilSerializer 620.8 ns 0.0807 ns 0.0674 ns 0.2356 992 B
SerializeAccountMergeWithUtf8JsonSerializer 421.5 ns 3.6137 ns 3.3802 ns 0.0319 136 B
SerializeAnswerWithJilSerializer 5,355.7 ns 4.6575 ns 4.3567 ns 2.1515 9057 B
SerializeAnswerWithUtf8JsonSerializer 5,401.6 ns 10.7438 ns 10.0498 ns 0.4501 1896 B
SerializeBadgeCountWithJilSerializer 233.8 ns 2.8278 ns 2.6451 ns 0.1392 584 B
SerializeBadgeCountWithUtf8JsonSerializer 207.3 ns 0.0254 ns 0.0225 ns 0.0207 88 B
SerializeBadgeWithJilSerializer 909.5 ns 1.4382 ns 1.3453 ns 0.5617 2360 B
SerializeBadgeWithUtf8JsonSerializer 1,031.1 ns 1.1988 ns 1.0011 ns 0.0992 424 B
SerializeClosedDetailsWithJilSerializer 1,080.5 ns 0.2056 ns 0.1923 ns 0.5856 2464 B
SerializeClosedDetailsWithUtf8JsonSerializer 1,100.6 ns 21.1949 ns 22.6783 ns 0.1106 472 B
SerializeCommentWithJilSerializer 1,846.1 ns 1.7271 ns 1.6155 ns 1.0395 4368 B
SerializeCommentWithUtf8JsonSerializer 2,035.2 ns 4.5237 ns 4.2315 ns 0.1774 752 B
SerializeErrorWithJilSerializer 304.5 ns 0.0796 ns 0.0745 ns 0.1941 816 B
SerializeErrorWithUtf8JsonSerializer 188.9 ns 0.0667 ns 0.0557 ns 0.0226 96 B
SerializeEventWithJilSerializer 732.0 ns 0.0919 ns 0.0815 ns 0.3099 1304 B
SerializeEventWithUtf8JsonSerializer 538.6 ns 0.2875 ns 0.2689 ns 0.0410 176 B
SerializeFlagOptionWithJilSerializer 835.6 ns 10.2995 ns 9.1303 ns 0.5884 2472 B
SerializeFlagOptionWithUtf8JsonSerializer 763.0 ns 0.6955 ns 0.6506 ns 0.1001 424 B
SerializeInboxItemWithJilSerializer 3,132.8 ns 4.5144 ns 3.7697 ns 1.1063 4648 B
SerializeInboxItemWithUtf8JsonSerializer 2,522.1 ns 31.9381 ns 29.8749 ns 0.2289 968 B
SerializeInfoWithJilSerializer 3,398.4 ns 0.9711 ns 0.7582 ns 1.7204 7225 B
SerializeInfoWithUtf8JsonSerializer 3,038.9 ns 3.5117 ns 3.2848 ns 0.3052 1288 B
SerializeMigrationInfoWithJilSerializer 2,892.2 ns 0.8541 ns 0.7132 ns 1.0376 4360 B
SerializeMigrationInfoWithUtf8JsonSerializer 2,168.6 ns 3.6388 ns 3.4037 ns 0.1907 816 B
SerializeMobileAssociationBonusWithJilSerializer 435.0 ns 8.7543 ns 10.7511 ns 0.2093 880 B
SerializeMobileAssociationBonusWithUtf8JsonSerializer 302.1 ns 0.2172 ns 0.1696 ns 0.0281 120 B
SerializeMobileBadgeAwardWithJilSerializer 683.5 ns 1.2485 ns 1.1068 ns 0.3538 1488 B
SerializeMobileBadgeAwardWithUtf8JsonSerializer 615.4 ns 1.8279 ns 1.4271 ns 0.0601 256 B
SerializeMobileBannerAdImageWithJilSerializer 256.5 ns 3.5923 ns 3.3602 ns 0.1407 592 B
SerializeMobileBannerAdImageWithUtf8JsonSerializer 205.6 ns 1.5318 ns 1.3579 ns 0.0207 88 B
SerializeMobileBannerAdWithJilSerializer 593.4 ns 0.5122 ns 0.3999 ns 0.3061 1288 B
SerializeMobileBannerAdWithUtf8JsonSerializer 442.0 ns 4.9764 ns 4.6550 ns 0.0415 176 B
SerializeMobileCareersJobAdWithJilSerializer 679.5 ns 6.2382 ns 5.2092 ns 0.3195 1344 B
SerializeMobileCareersJobAdWithUtf8JsonSerializer 407.6 ns 0.4408 ns 0.3442 ns 0.0434 184 B
SerializeMobileCommunityBulletinWithJilSerializer 1,175.5 ns 8.0452 ns 7.5255 ns 0.5417 2280 B
SerializeMobileCommunityBulletinWithUtf8JsonSerializer 811.4 ns 3.2368 ns 3.0277 ns 0.0887 376 B
SerializeMobileFeedWithJilSerializer 8,844.3 ns 9.1554 ns 8.1160 ns 3.7537 15776 B
SerializeMobileFeedWithUtf8JsonSerializer 7,514.3 ns 14.2197 ns 12.6054 ns 0.7629 3209 B
SerializeMobileInboxItemWithJilSerializer 867.6 ns 15.1539 ns 14.1750 ns 0.3672 1544 B
SerializeMobileInboxItemWithUtf8JsonSerializer 641.8 ns 6.8701 ns 6.0901 ns 0.0677 288 B
SerializeMobilePrivilegeWithJilSerializer 657.8 ns 2.1763 ns 1.9292 ns 0.3538 1488 B
SerializeMobilePrivilegeWithUtf8JsonSerializer 469.7 ns 0.7296 ns 0.6092 ns 0.0606 256 B
SerializeMobileQuestionWithJilSerializer 1,001.0 ns 9.4122 ns 8.8041 ns 0.5150 2168 B
SerializeMobileQuestionWithUtf8JsonSerializer 691.1 ns 0.3320 ns 0.3106 ns 0.0753 320 B
SerializeMobileRepChangeWithJilSerializer 553.6 ns 7.5634 ns 7.0748 ns 0.3080 1296 B
SerializeMobileRepChangeWithUtf8JsonSerializer 372.6 ns 0.1461 ns 0.1367 ns 0.0377 160 B
SerializeMobileUpdateNoticeWithJilSerializer 300.7 ns 2.9760 ns 2.6381 ns 0.1750 736 B
SerializeMobileUpdateNoticeWithUtf8JsonSerializer 161.0 ns 0.1330 ns 0.1244 ns 0.0265 112 B
SerializeNetworkUserWithJilSerializer 1,447.7 ns 0.7801 ns 0.7297 ns 0.5665 2384 B
SerializeNetworkUserWithUtf8JsonSerializer 1,274.7 ns 12.7614 ns 11.9370 ns 0.0935 400 B
SerializeNoticeWithJilSerializer 632.9 ns 0.1891 ns 0.1676 ns 0.2108 888 B
SerializeNoticeWithUtf8JsonSerializer 413.1 ns 0.1351 ns 0.1055 ns 0.0300 128 B
SerializeNotificationWithJilSerializer 2,992.8 ns 32.2890 ns 28.6233 ns 1.0719 4504 B
SerializeNotificationWithUtf8JsonSerializer 2,341.5 ns 3.4745 ns 3.2500 ns 0.2136 904 B
SerializeOriginalQuestionWithJilSerializer 325.5 ns 0.1203 ns 0.0939 ns 0.2074 872 B
SerializeOriginalQuestionWithUtf8JsonSerializer 254.8 ns 0.0846 ns 0.0750 ns 0.0300 128 B
SerializePostWithJilSerializer 4,946.9 ns 3.6639 ns 3.4272 ns 2.0599 8657 B
SerializePostWithUtf8JsonSerializer 4,637.9 ns 4.9350 ns 4.6162 ns 0.4044 1713 B
SerializePrivilegeWithJilSerializer 322.3 ns 0.1775 ns 0.1660 ns 0.1979 832 B
SerializePrivilegeWithUtf8JsonSerializer 191.3 ns 0.1349 ns 0.1262 ns 0.0265 112 B
SerializeQuestionTimelineWithJilSerializer 1,757.1 ns 2.1910 ns 2.0494 ns 1.0395 4368 B
SerializeQuestionTimelineWithUtf8JsonSerializer 1,983.5 ns 4.1518 ns 3.8836 ns 0.1793 760 B
SerializeQuestionWithJilSerializer 19,415.3 ns 11.0088 ns 10.2976 ns 7.5378 31753 B
SerializeQuestionWithUtf8JsonSerializer 18,885.5 ns 204.5650 ns 191.3502 ns 1.4954 6346 B
SerializeRelatedSiteWithJilSerializer 339.6 ns 0.1258 ns 0.1115 ns 0.2036 856 B
SerializeRelatedSiteWithUtf8JsonSerializer 226.7 ns 0.0505 ns 0.0394 ns 0.0281 120 B
SerializeReputationHistoryWithJilSerializer 719.1 ns 0.1119 ns 0.1046 ns 0.3290 1384 B
SerializeReputationHistoryWithUtf8JsonSerializer 568.3 ns 0.1528 ns 0.1429 ns 0.0448 192 B
SerializeReputationWithJilSerializer 832.3 ns 13.5928 ns 12.0496 ns 0.3700 1560 B
SerializeReputationWithUtf8JsonSerializer 715.3 ns 0.1792 ns 0.1399 ns 0.0544 232 B
SerializeRevisionWithJilSerializer 1,768.5 ns 2.2812 ns 2.1338 ns 0.9384 3944 B
SerializeRevisionWithUtf8JsonSerializer 1,657.4 ns 1.9856 ns 1.7602 ns 0.1526 648 B
SerializeSearchExcerptWithJilSerializer 3,518.3 ns 35.5822 ns 33.2836 ns 1.1940 5016 B
SerializeSearchExcerptWithUtf8JsonSerializer 3,098.7 ns 5.6757 ns 5.0314 ns 0.2441 1040 B
SerializeShallowUserWithJilSerializer 584.0 ns 0.1745 ns 0.1547 ns 0.3519 1480 B
SerializeShallowUserWithUtf8JsonSerializer 635.1 ns 0.4209 ns 0.3937 ns 0.0620 264 B
SerializeSiteWithJilSerializer 2,523.9 ns 30.9393 ns 28.9407 ns 0.9918 4176 B
SerializeSiteWithUtf8JsonSerializer 1,799.5 ns 0.6761 ns 0.6324 ns 0.1736 736 B
SerializeStylingWithJilSerializer 320.4 ns 0.2087 ns 0.1850 ns 0.1807 760 B
SerializeStylingWithUtf8JsonSerializer 168.6 ns 0.0798 ns 0.0707 ns 0.0284 120 B
SerializeSuggestedEditWithJilSerializer 2,195.3 ns 1.8731 ns 1.6605 ns 0.9270 3896 B
SerializeSuggestedEditWithUtf8JsonSerializer 1,834.6 ns 0.2564 ns 0.2273 ns 0.1411 600 B
SerializeTagScoreWithJilSerializer 723.9 ns 0.1810 ns 0.1693 ns 0.5121 2152 B
SerializeTagScoreWithUtf8JsonSerializer 793.0 ns 10.6387 ns 9.9515 ns 0.0753 320 B
SerializeTagSynonymWithJilSerializer 1,092.6 ns 14.6521 ns 13.7056 ns 0.3319 1400 B
SerializeTagSynonymWithUtf8JsonSerializer 709.5 ns 0.2794 ns 0.2613 ns 0.0486 208 B
SerializeTagWikiWithJilSerializer 2,104.8 ns 0.6462 ns 0.5729 ns 1.0262 4312 B
SerializeTagWikiWithUtf8JsonSerializer 1,976.7 ns 12.8327 ns 12.0037 ns 0.1736 736 B
SerializeTagWithJilSerializer 824.0 ns 0.1489 ns 0.1244 ns 0.3424 1440 B
SerializeTagWithUtf8JsonSerializer 640.4 ns 0.1974 ns 0.1541 ns 0.0544 232 B
SerializeTopTagWithJilSerializer 417.8 ns 0.1148 ns 0.1073 ns 0.3085 1296 B
SerializeTopTagWithUtf8JsonSerializer 365.8 ns 0.0742 ns 0.0619 ns 0.0415 176 B
SerializeUserTimelineWithJilSerializer 989.0 ns 0.3082 ns 0.2883 ns 0.5131 2160 B
SerializeUserTimelineWithUtf8JsonSerializer 890.8 ns 0.3682 ns 0.3264 ns 0.0715 304 B
SerializeUserWithJilSerializer 2,866.2 ns 10.8126 ns 10.1141 ns 1.0910 4584 B
SerializeUserWithUtf8JsonSerializer 2,568.8 ns 27.9052 ns 26.1025 ns 0.2174 928 B
SerializeWritePermissionWithJilSerializer 418.2 ns 0.0956 ns 0.0848 ns 0.3161 1328 B
SerializeWritePermissionWithUtf8JsonSerializer 352.0 ns 0.0333 ns 0.0260 ns 0.0453 192 B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment