ITADN

Missing license

#175Closedvincentsarago 创建于 2024-10-16
V
vincentsaragocommented
Hi @jessekrubin 👋 I was writing some benchmark for [morecantile](https://github.com/developmentseed/morecantile) and ended up (lazily) copying some of your code from https://github.com/jessekrubin/utiles/blob/main/utiles-pyo3/bench/test_bench.py (hope you don't mind) but realized there wasn't any license in your repo Looking at the python module, it seems you either want one of both Apache or MIT license 😄 https://github.com/jessekrubin/utiles/blob/ea58b9a017a2e3528f03cc20f16ef531737b863f/utiles-pyo3/pyproject.toml#L11-L12 ##### FYI: Benchmark results Well you know utiles was already faster then mercantile, and here are the result with morecantile ``` -------------------------------------------------------- benchmark 'bounds': 18 tests ------------------------------------------------------- Name (time in ns) Min Max Mean Median --------------------------------------------------------------------------------------------------------------------------------------------- test_bounds_bench[utiles-(1, 0, 1)] 204.8333 (1.0) 3,555.5417 (1.43) 216.9042 (1.01) 215.2917 (1.01) test_bounds_bench[utiles-(1, 40, 7)] 206.5833 (1.01) 3,279.5000 (1.32) 215.1160 (1.0) 213.5417 (1.0) test_bounds_bench[utiles-(486, 332, 10)] 211.9565 (1.03) 2,490.9565 (1.0) 221.2585 (1.03) 219.2174 (1.03) test_bounds_bench[utiles-(1, 1, 1)] 214.0000 (1.04) 2,967.8182 (1.19) 223.6486 (1.04) 221.5909 (1.04) test_bounds_bench[utiles-(486, 332, 20)] 227.2727 (1.11) 3,138.2273 (1.26) 237.4967 (1.10) 236.7273 (1.11) test_bounds_bench[utiles-(0, 0, 0)] 250.0000 (1.22) 28,750.0000 (11.54) 309.2879 (1.44) 292.0000 (1.37) test_bounds_bench[mercantile-(1, 40, 7)] 1,750.0000 (8.54) 181,500.0000 (72.86) 1,900.5980 (8.84) 1,875.0000 (8.78) test_bounds_bench[mercantile-(486, 332, 10)] 1,750.0000 (8.54) 69,750.0000 (28.00) 1,933.3276 (8.99) 1,916.0000 (8.97) test_bounds_bench[mercantile-(1, 1, 1)] 1,750.0000 (8.54) 79,417.0000 (31.88) 1,961.9164 (9.12) 1,917.0000 (8.98) test_bounds_bench[mercantile-(0, 0, 0)] 1,791.0000 (8.74) 26,083.0000 (10.47) 1,957.0993 (9.10) 1,958.0000 (9.17) test_bounds_bench[mercantile-(1, 0, 1)] 1,791.0000 (8.74) 103,292.0000 (41.47) 2,071.7159 (9.63) 1,958.0000 (9.17) test_bounds_bench[mercantile-(486, 332, 20)] 1,792.0000 (8.75) 36,375.0000 (14.60) 1,976.5037 (9.19) 1,958.0000 (9.17) test_bounds_bench[morecantile-(1, 0, 1)] 32,584.0000 (159.08) 124,375.0000 (49.93) 33,599.3719 (156.19) 33,375.0000 (156.29) test_bounds_bench[morecantile-(1, 1, 1)] 32,708.0000 (159.68) 150,500.0000 (60.42) 33,765.4202 (156.96) 33,458.0000 (156.68) test_bounds_bench[morecantile-(0, 0, 0)] 32,709.0000 (159.69) 316,166.0000 (126.93) 33,778.4200 (157.02) 33,458.0000 (156.68) test_bounds_bench[morecantile-(1, 40, 7)] 34,958.0000 (170.67) 164,916.0000 (66.21) 36,064.5836 (167.65) 35,750.0000 (167.41) test_bounds_bench[morecantile-(486, 332, 10)] 36,041.0000 (175.95) 122,042.0000 (48.99) 37,091.7861 (172.43) 36,584.0000 (171.32) test_bounds_bench[morecantile-(486, 332, 20)] 39,583.0000 (193.24) 119,292.0000 (47.89) 40,767.4774 (189.51) 40,417.0000 (189.27) --------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------- benchmark 'xy_bounds': 18 tests -------------------------------------------------------- Name (time in ns) Min Max Mean Median ------------------------------------------------------------------------------------------------------------------------------------------------ test_xy_bounds_bench[utiles-(0, 0, 0)] 125.0000 (1.0) 30,000.0000 (44.72) 231.2185 (1.56) 209.0000 (1.42) test_xy_bounds_bench[utiles-(486, 332, 10)] 125.0000 (1.0) 36,708.0000 (54.72) 232.7112 (1.57) 250.0000 (1.69) test_xy_bounds_bench[utiles-(1, 1, 1)] 144.5800 (1.16) 1,311.2500 (1.95) 148.4311 (1.0) 147.5000 (1.0) test_xy_bounds_bench[utiles-(1, 40, 7)] 145.8300 (1.17) 670.8300 (1.0) 149.4120 (1.01) 148.7500 (1.01) test_xy_bounds_bench[utiles-(1, 0, 1)] 147.0900 (1.18) 770.0000 (1.15) 151.0150 (1.02) 150.0000 (1.02) test_xy_bounds_bench[utiles-(486, 332, 20)] 148.7500 (1.19) 832.9200 (1.24) 152.2990 (1.03) 151.2500 (1.03) test_xy_bounds_bench[mercantile-(1, 40, 7)] 1,167.0000 (9.34) 54,334.0000 (81.00) 1,343.5376 (9.05) 1,333.0000 (9.04) test_xy_bounds_bench[mercantile-(0, 0, 0)] 1,208.0000 (9.66) 56,542.0000 (84.29) 1,357.0176 (9.14) 1,333.0000 (9.04) test_xy_bounds_bench[mercantile-(1, 0, 1)] 1,208.0000 (9.66) 84,875.0000 (126.52) 1,355.0872 (9.13) 1,334.0000 (9.04) test_xy_bounds_bench[mercantile-(1, 1, 1)] 1,208.0000 (9.66) 90,042.0000 (134.22) 1,361.0622 (9.17) 1,334.0000 (9.04) test_xy_bounds_bench[mercantile-(486, 332, 10)] 1,208.0000 (9.66) 74,667.0000 (111.31) 1,345.1122 (9.06) 1,333.0000 (9.04) test_xy_bounds_bench[mercantile-(486, 332, 20)] 1,208.0000 (9.66) 103,333.0000 (154.04) 1,345.8632 (9.07) 1,333.0000 (9.04) test_xy_bounds_bench[morecantile-(0, 0, 0)] 5,000.0000 (40.00) 74,625.0000 (111.24) 5,260.3401 (35.44) 5,209.0000 (35.32) test_xy_bounds_bench[morecantile-(1, 1, 1)] 5,375.0000 (43.00) 73,375.0000 (109.38) 5,643.7996 (38.02) 5,584.0000 (37.86) test_xy_bounds_bench[morecantile-(1, 0, 1)] 5,375.0000 (43.00) 115,042.0000 (171.49) 5,649.9184 (38.06) 5,625.0000 (38.14) test_xy_bounds_bench[morecantile-(1, 40, 7)] 7,167.0000 (57.34) 87,125.0000 (129.88) 7,496.2548 (50.50) 7,458.0000 (50.56) test_xy_bounds_bench[morecantile-(486, 332, 10)] 8,000.0000 (64.00) 96,958.0000 (144.53) 8,331.9190 (56.13) 8,250.0000 (55.93) test_xy_bounds_bench[morecantile-(486, 332, 20)] 11,250.0000 (90.00) 110,708.0000 (165.03) 11,618.0916 (78.27) 11,500.0000 (77.97) ------------------------------------------------------------------------------------------------------------------------------------------------ ``` Morecantile isn't designed for speed but first to handle multiple TMS ;-)
关闭于 2024-10-21 4 条评论