Permalink
Browse files

new benchmark results, including ActiveSupport::Multibyte

  • Loading branch information...
1 parent e10d9db commit 5a15af2888b4696ad7833a1efc094aec30eea000 @duerst committed Oct 25, 2013
Showing with 80 additions and 56 deletions.
  1. +80 −56 benchmark/benchmark_results.txt
@@ -1,84 +1,108 @@
-_____________________________ Deutsch ____________________________________
+________________ Deutsch (89435 characters, 90745 bytes) ________________
user system total real
-Fast Normalization using gsub and hash (100 times)
-NFD: 1.248000 0.000000 1.248000 ( 1.252518)
-NFKD: 1.856000 0.000000 1.856000 ( 1.847528)
-NFC: 1.560000 0.000000 1.560000 ( 1.570023)
-NFKC: 2.200000 0.000000 2.200000 ( 2.197533)
+Fast normalization using eprun (100 times)
+NFD: 1.233000 0.000000 1.233000 ( 1.237508)
+NFKD: 1.778000 0.000000 1.778000 ( 1.772512)
+NFC: 1.482000 0.000000 1.482000 ( 1.487510)
+NFKC: 1.997000 0.015000 2.012000 ( 2.025015)
Hash size: NFD 19, NFC 0, K 2
Using unicode_utils gem (100 times)
-NFD: 7.519000 0.016000 7.535000 ( 7.560111)
-NFKD: 11.871000 0.000000 11.871000 ( 11.990175)
-NFC: 19.173000 0.015000 19.188000 ( 19.306280)
-NFKC: 21.575000 0.016000 21.591000 ( 21.620311)
+NFD: 6.240000 0.000000 6.240000 ( 6.262545)
+NFKD: 9.235000 0.000000 9.235000 ( 9.235063)
+NFC: 16.583000 0.016000 16.599000 ( 16.642612)
+NFKC: 18.892000 0.015000 18.907000 ( 18.902634)
Using twitter_cldr gem (a single time)
-NFD: 3.884000 0.281000 4.165000 ( 4.666068)
-NFKD: 4.072000 0.015000 4.087000 ( 4.107561)
-NFC: 8.627000 0.016000 8.643000 ( 8.730129)
-NFKC: 10.577000 0.000000 10.577000 ( 10.723151)
+NFD: 3.400000 0.188000 3.588000 ( 3.585026)
+NFKD: 3.495000 0.000000 3.495000 ( 3.517523)
+NFC: 7.238000 0.031000 7.269000 ( 7.266051)
+NFKC: 8.034000 0.000000 8.034000 ( 8.032557)
-_____________________________ Japanese ____________________________________
+Using ActiveSupport::Multibyte::Chars (10 times)
+NFD: 1.092000 0.047000 1.139000 ( 1.137506)
+NFKD: 1.202000 0.000000 1.202000 ( 1.197509)
+NFC: 1.747000 0.000000 1.747000 ( 1.750012)
+NFKC: 1.825000 0.000000 1.825000 ( 1.825014)
+
+________________ Japanese (76221 characters, 226953 bytes) ________________
user system total real
-Fast Normalization using gsub and hash (100 times)
-NFD: 4.695000 0.015000 4.710000 ( 4.710067)
-NFKD: 5.304000 0.047000 5.351000 ( 5.422577)
-NFC: 4.384000 0.000000 4.384000 ( 4.407558)
-NFKC: 4.727000 0.016000 4.743000 ( 4.767570)
+Fast normalization using eprun (100 times)
+NFD: 3.244000 0.046000 3.290000 ( 3.305023)
+NFKD: 3.542000 0.016000 3.558000 ( 3.557523)
+NFC: 3.588000 0.000000 3.588000 ( 3.582523)
+NFKC: 4.165000 0.031000 4.196000 ( 4.205028)
Hash size: NFD 68, NFC 0, K 21
Using unicode_utils gem (100 times)
-NFD: 8.393000 0.000000 8.393000 ( 8.552619)
-NFKD: 12.995000 0.015000 13.010000 ( 13.000188)
-NFC: 20.124000 0.000000 20.124000 ( 20.226295)
-NFKC: 19.515000 0.016000 19.531000 ( 19.612788)
+NFD: 7.004000 0.000000 7.004000 ( 6.997549)
+NFKD: 10.047000 0.000000 10.047000 ( 10.084571)
+NFC: 16.442000 0.000000 16.442000 ( 16.442615)
+NFKC: 19.672000 0.016000 19.688000 ( 19.702628)
Using twitter_cldr gem (a single time)
-NFD: 14.119000 0.000000 14.119000 ( 14.162709)
-NFKD: 13.275000 0.016000 13.291000 ( 13.298695)
-NFC: 27.425000 0.015000 27.440000 ( 27.527903)
-NFKC: 28.455000 0.016000 28.471000 ( 28.572917)
+NFD: 13.650000 0.000000 13.650000 ( 13.640088)
+NFKD: 12.402000 0.000000 12.402000 ( 12.407578)
+NFC: 25.319000 0.000000 25.319000 ( 25.320162)
+NFKC: 25.616000 0.000000 25.616000 ( 25.652671)
+
+Using ActiveSupport::Multibyte::Chars (10 times)
+NFD: 1.248000 0.000000 1.248000 ( 1.240008)
+NFKD: 1.294000 0.000000 1.294000 ( 1.302509)
+NFC: 2.793000 0.000000 2.793000 ( 2.780020)
+NFKC: 2.808000 0.000000 2.808000 ( 2.810019)
-_____________________________ Korean ____________________________________
+________________ Korean (27514 characters, 59688 bytes) ________________
user system total real
-Fast Normalization using gsub and hash (100 times)
-NFD: 1.747000 0.015000 1.762000 ( 1.797526)
-NFKD: 2.028000 0.000000 2.028000 ( 2.027530)
-NFC: 1.061000 0.000000 1.061000 ( 1.065016)
-NFKC: 1.279000 0.000000 1.279000 ( 1.275019)
+Fast normalization using eprun (100 times)
+NFD: 1.825000 0.000000 1.825000 ( 1.825012)
+NFKD: 1.981000 0.031000 2.012000 ( 2.025014)
+NFC: 0.905000 0.000000 0.905000 ( 0.897504)
+NFKC: 1.139000 0.000000 1.139000 ( 1.137508)
Hash size: NFD 695, NFC 0, K 24
Using unicode_utils gem (100 times)
-NFD: 4.337000 0.000000 4.337000 ( 4.328564)
-NFKD: 4.789000 0.016000 4.805000 ( 4.830071)
-NFC: 9.797000 0.031000 9.828000 ( 9.855145)
-NFKC: 10.624000 0.000000 10.624000 ( 10.700157)
+NFD: 4.087000 0.000000 4.087000 ( 4.107529)
+NFKD: 4.290000 0.000000 4.290000 ( 4.282527)
+NFC: 8.721000 0.000000 8.721000 ( 8.720056)
+NFKC: 9.172000 0.000000 9.172000 ( 9.180063)
Using twitter_cldr gem (a single time)
-NFD: 4.680000 0.000000 4.680000 ( 4.782569)
-NFKD: 4.414000 0.000000 4.414000 ( 4.417564)
-NFC: 8.456000 0.000000 8.456000 ( 8.492621)
-NFKC: 7.176000 0.000000 7.176000 ( 7.187608)
+NFD: 3.510000 0.047000 3.557000 ( 3.579025)
+NFKD: 3.495000 0.000000 3.495000 ( 3.515023)
+NFC: 7.036000 0.000000 7.036000 ( 7.032551)
+NFKC: 7.191000 0.000000 7.191000 ( 7.190049)
-_____________________________ Vietnamese ____________________________________
+Using ActiveSupport::Multibyte::Chars (10 times)
+NFD: 0.562000 0.000000 0.562000 ( 0.570004)
+NFKD: 0.639000 0.000000 0.639000 ( 0.637504)
+NFC: 2.528000 0.000000 2.528000 ( 2.520020)
+NFKC: 2.854000 0.000000 2.854000 ( 2.867520)
+
+________________ Vietnamese (71051 characters, 86141 bytes) ________________
user system total real
-Fast Normalization using gsub and hash (100 times)
-NFD: 1.872000 0.000000 1.872000 ( 1.880027)
-NFKD: 2.059000 0.016000 2.075000 ( 2.092531)
-NFC: 2.059000 0.000000 2.059000 ( 2.055030)
-NFKC: 2.496000 0.000000 2.496000 ( 2.495037)
+Fast normalization using eprun (100 times)
+NFD: 1.607000 0.000000 1.607000 ( 1.617511)
+NFKD: 2.075000 0.015000 2.090000 ( 2.080016)
+NFC: 1.794000 0.000000 1.794000 ( 1.805011)
+NFKC: 2.449000 0.016000 2.465000 ( 2.452516)
Hash size: NFD 767, NFC 72, K 26
Using unicode_utils gem (100 times)
-NFD: 5.975000 0.000000 5.975000 ( 6.002589)
-NFKD: 8.096000 0.031000 8.127000 ( 8.170122)
-NFC: 14.774000 0.016000 14.790000 ( 14.840216)
-NFKC: 17.877000 0.000000 17.877000 ( 17.977763)
+NFD: 5.445000 0.016000 5.461000 ( 5.465038)
+NFKD: 7.644000 0.015000 7.659000 ( 7.660051)
+NFC: 13.619000 0.000000 13.619000 ( 13.637594)
+NFKC: 15.927000 0.016000 15.943000 ( 15.960104)
Using twitter_cldr gem (a single time)
-NFD: 3.074000 0.000000 3.074000 ( 3.090045)
-NFKD: 2.979000 0.000000 2.979000 ( 2.982545)
-NFC: 8.955000 0.000000 8.955000 ( 9.005130)
-NFKC: 7.971000 0.015000 7.986000 ( 8.003619)
+NFD: 2.762000 0.000000 2.762000 ( 2.765016)
+NFKD: 3.135000 0.000000 3.135000 ( 3.130019)
+NFC: 7.379000 0.000000 7.379000 ( 7.415047)
+NFKC: 7.254000 0.000000 7.254000 ( 7.247546)
+
+Using ActiveSupport::Multibyte::Chars (10 times)
+NFD: 0.967000 0.000000 0.967000 ( 0.972507)
+NFKD: 0.858000 0.000000 0.858000 ( 0.850005)
+NFC: 3.807000 0.000000 3.807000 ( 3.807525)
+NFKC: 4.009000 0.000000 4.009000 ( 4.006526)

0 comments on commit 5a15af2

Please sign in to comment.