azavea / topobuf

Other
2 stars 1 forks source link

Faster performance for decode function #1

Closed maurizi closed 2 years ago

maurizi commented 2 years ago

Techniques applied:

PA was too big to check into git, so I just tested it locally

benchmarking: decode pa census blocks (topobuf improved)
        warmup... 29058.86ms (3 runs)
        total: 95192.60ms, runs: 15 (@ 1 calls/iter)
        mean: 6346.17ms, median: 6339.94ms, range: [6155.39..6574.00]
        q1: 6294.47ms, q3: 6487.87ms
        sd: 1.96%
benchmarking: decode pa census blocks (topobuf original)
        warmup... 32722.91ms (3 runs)
        total: 163888.58ms, runs: 15 (@ 1 calls/iter)
        mean: 10925.91ms, median: 10959.38ms, range: [10698.45..11060.15]
        q1: 10838.83ms, q3: 11033.05ms
        sd: 1.00%
benchmarking: decode pa census blocks (v8)
        warmup... 25402.78ms (3 runs)
        total: 130589.64ms, runs: 15 (@ 1 calls/iter)
        mean: 8705.98ms, median: 8657.52ms, range: [8445.19..8978.51]
        q1: 8625.25ms, q3: 8879.77ms
        sd: 1.71%
benchmarking: JSON.parse
        warmup... 17742.65ms (3 runs)
        total: 74554.91ms, runs: 15 (@ 1 calls/iter)
        mean: 4970.33ms, median: 5159.99ms, range: [4485.36..5388.14]
        q1: 4686.48ms, q3: 5264.77ms
        sd: 5.95%