nickva commented on issue #726: Provide a more accurate size check for max_document_size limit URL: https://github.com/apache/couchdb/pull/726#issuecomment-329036582 A speed benchmark with the latest version ``` ./run_ebench.sh 100 1000 10000 Generating inputs... Running benchmark: 4 encoders x 42 tests x input size(s): [100,1000,10000] Finished running benchmark. Enc. | Input size | Input type | USec | Bytes ------+------------+--------------+------------+---------- jiffy | 100 | file_1 | 1692.0 | 130301 | 100 | float_17d | 32.5 | 2001 | 100 | float_1d_arr | 21.2 | 401 | 100 | float_large_ | 21.6 | 701 | 100 | int_large_ar | 157.0 | 10301 | 100 | int_small_ar | 18.7 | 301 | 100 | nested_arr | 12.0 | 202 | 100 | nested_obj | 16.3 | 609 | 100 | str_basic | 0.7 | 102 | 100 | str_cent | 1.6 | 202 | 100 | str_ctr1 | 1.3 | 602 | 100 | str_escn | 1.1 | 202 | 100 | str_euro | 2.0 | 302 | 100 | str_hwair | 2.2 | 402 | 1000 | file_1 | 17800.3 | 1303001 | 1000 | float_17d | 306.6 | 20001 | 1000 | float_1d_arr | 226.7 | 4001 | 1000 | float_large_ | 317.8 | 7001 | 1000 | int_large_ar | 2171.0 | 103001 | 1000 | int_small_ar | 224.1 | 3001 | 1000 | nested_arr | 147.3 | 2002 | 1000 | nested_obj | 194.1 | 6009 | 1000 | str_basic | 3.6 | 1002 | 1000 | str_cent | 12.1 | 2002 | 1000 | str_ctr1 | 8.3 | 6002 | 1000 | str_escn | 6.4 | 2002 | 1000 | str_euro | 16.9 | 3002 | 1000 | str_hwair | 20.0 | 4002 | 10000 | file_1 | 184360.2 | 13030001 | 10000 | float_17d | 3030.1 | 200001 | 10000 | float_1d_arr | 2401.1 | 40001 | 10000 | float_large_ | 2307.9 | 70001 | 10000 | int_large_ar | 28966.1 | 1030001 | 10000 | int_small_ar | 2177.0 | 30001 | 10000 | nested_arr | 1381.3 | 20002 | 10000 | nested_obj | 1636.3 | 60009 | 10000 | str_basic | 24.2 | 10002 | 10000 | str_cent | 86.9 | 20002 | 10000 | str_ctr1 | 57.5 | 60002 | 10000 | str_escn | 47.2 | 20002 | 10000 | str_euro | 147.0 | 30002 | 10000 | str_hwair | 217.8 | 40002 erlfast | 100 | file_1 | 418.4 | 129001 | 100 | float_17d | 4.9 | 401 | 100 | float_1d_arr | 4.9 | 401 | 100 | float_large_ | 4.4 | 601 | 100 | int_large_ar | 14.9 | 10301 | 100 | int_small_ar | 3.1 | 301 | 100 | nested_arr | 3.1 | 202 | 100 | nested_obj | 6.7 | 609 | 100 | str_basic | 0.0 | 102 | 100 | str_cent | 0.0 | 202 | 100 | str_ctr1 | 0.0 | 102 | 100 | str_escn | 0.0 | 102 | 100 | str_euro | 0.0 | 302 | 100 | str_hwair | 0.0 | 402 | 1000 | file_1 | 4376.1 | 1290001 | 1000 | float_17d | 53.1 | 4001 | 1000 | float_1d_arr | 58.7 | 4001 | 1000 | float_large_ | 49.5 | 6001 | 1000 | int_large_ar | 158.9 | 103001 | 1000 | int_small_ar | 40.5 | 3001 | 1000 | nested_arr | 36.9 | 2002 | 1000 | nested_obj | 76.4 | 6009 | 1000 | str_basic | 0.0 | 1002 | 1000 | str_cent | 0.0 | 2002 | 1000 | str_ctr1 | 0.0 | 1002 | 1000 | str_escn | 0.0 | 1002 | 1000 | str_euro | 0.0 | 3002 | 1000 | str_hwair | 0.0 | 4002 | 10000 | file_1 | 43961.1 | 12900001 | 10000 | float_17d | 504.0 | 40001 | 10000 | float_1d_arr | 487.8 | 40001 | 10000 | float_large_ | 451.9 | 60001 | 10000 | int_large_ar | 1871.3 | 1030001 | 10000 | int_small_ar | 428.1 | 30001 | 10000 | nested_arr | 354.4 | 20002 | 10000 | nested_obj | 826.9 | 60009 | 10000 | str_basic | 0.1 | 10002 | 10000 | str_cent | 0.3 | 20002 | 10000 | str_ctr1 | 0.0 | 10002 | 10000 | str_escn | 0.1 | 10002 | 10000 | str_euro | 0.1 | 30002 | 10000 | str_hwair | 0.1 | 40002 erlexact | 100 | file_1 | 3534.4 | 130301 | 100 | float_17d | 81.7 | 2001 | 100 | float_1d_arr | 73.8 | 401 | 100 | float_large_ | 74.2 | 701 | 100 | int_large_ar | 11.6 | 10301 | 100 | int_small_ar | 5.2 | 301 | 100 | nested_arr | 3.4 | 202 | 100 | nested_obj | 11.1 | 609 | 100 | str_basic | 2.5 | 102 | 100 | str_cent | 4.1 | 202 | 100 | str_ctr1 | 2.3 | 602 | 100 | str_escn | 2.3 | 202 | 100 | str_euro | 3.1 | 302 | 100 | str_hwair | 2.3 | 402 | 1000 | file_1 | 35486.8 | 1303001 | 1000 | float_17d | 757.2 | 20001 | 1000 | float_1d_arr | 701.9 | 4001 | 1000 | float_large_ | 707.5 | 7001 | 1000 | int_large_ar | 92.3 | 103001 | 1000 | int_small_ar | 51.6 | 3001 | 1000 | nested_arr | 34.5 | 2002 | 1000 | nested_obj | 138.0 | 6009 | 1000 | str_basic | 23.9 | 1002 | 1000 | str_cent | 39.1 | 2002 | 1000 | str_ctr1 | 20.6 | 6002 | 1000 | str_escn | 22.6 | 2002 | 1000 | str_euro | 30.0 | 3002 | 1000 | str_hwair | 21.8 | 4002 | 10000 | file_1 | 350994.4 | 13030001 | 10000 | float_17d | 8522.7 | 200001 | 10000 | float_1d_arr | 6650.3 | 40001 | 10000 | float_large_ | 6538.2 | 70001 | 10000 | int_large_ar | 1264.5 | 1030001 | 10000 | int_small_ar | 508.0 | 30001 | 10000 | nested_arr | 339.3 | 20002 | 10000 | nested_obj | 1089.0 | 60009 | 10000 | str_basic | 239.3 | 10002 | 10000 | str_cent | 382.3 | 20002 | 10000 | str_ctr1 | 208.8 | 60002 | 10000 | str_escn | 221.7 | 20002 | 10000 | str_euro | 298.5 | 30002 | 10000 | str_hwair | 221.2 | 40002 jsone | 100 | file_1 | 7879.2 | 134101 | 100 | float_17d | 78.2 | 2701 | 100 | float_1d_arr | 74.5 | 2701 | 100 | float_large_ | 160.3 | 2801 | 100 | int_large_ar | 100.1 | 10301 | 100 | int_small_ar | 13.2 | 301 | 100 | nested_arr | 10.3 | 202 | 100 | nested_obj | 33.4 | 609 | 100 | str_basic | 5.2 | 102 | 100 | str_cent | 16.3 | 602 | 100 | str_ctr1 | 7.5 | 602 | 100 | str_escn | 3.3 | 202 | 100 | str_euro | 11.5 | 602 | 100 | str_hwair | 24.9 | 1202 | 1000 | file_1 | 92657.6 | 1341001 | 1000 | float_17d | 795.1 | 27001 | 1000 | float_1d_arr | 717.4 | 27001 | 1000 | float_large_ | 1581.0 | 28001 | 1000 | int_large_ar | 955.5 | 103001 | 1000 | int_small_ar | 132.9 | 3001 | 1000 | nested_arr | 102.3 | 2002 | 1000 | nested_obj | 290.2 | 6009 | 1000 | str_basic | 50.5 | 1002 | 1000 | str_cent | 131.5 | 6002 | 1000 | str_ctr1 | 68.6 | 6002 | 1000 | str_escn | 31.2 | 2002 | 1000 | str_euro | 109.2 | 6002 | 1000 | str_hwair | 352.8 | 12002 | 10000 | file_1 | 967573.9 | 13410001 | 10000 | float_17d | 7768.7 | 270001 | 10000 | float_1d_arr | 7831.8 | 270001 | 10000 | float_large_ | 17069.9 | 280001 | 10000 | int_large_ar | 11148.5 | 1030001 | 10000 | int_small_ar | 1468.5 | 30001 | 10000 | nested_arr | 1483.7 | 20002 | 10000 | nested_obj | 3742.5 | 60009 | 10000 | str_basic | 631.4 | 10002 | 10000 | str_cent | 1125.7 | 60002 | 10000 | str_ctr1 | 703.1 | 60002 | 10000 | str_escn | 317.7 | 20002 | 10000 | str_euro | 1431.2 | 60002 | 10000 | str_hwair | 2626.6 | 120002 ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
