Created
November 4, 2026 17:48
-
-
Save Pyseph/fbc7b50d6a7be2d5670d5c5dbdeb1106 to your computer and use it in GitHub Desktop.
t3code mobile: streaming markdown block conversion, fuzz and timing harness with raw rows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"files":3,"prefixes":17334,"split":17224,"mismatches":0} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Every prefix (a chunk boundary at every offset) of the given files, through one cache per owner. | |
| import fs from "node:fs"; import os from "node:os"; os.setPriority(0, os.constants.priority.PRIORITY_BELOW_NORMAL); | |
| const m = await import("./bundle.mjs"); | |
| let cmp = 0, bad = 0, split = 0; | |
| for (const f of process.argv.slice(2)) { | |
| const t = fs.readFileSync(f, "utf8"); | |
| for (const { owner, main } of m.owners) { | |
| const cache = m.createNativeMarkdownBlockCache(); | |
| for (let i = 0; i <= t.length; i++) { | |
| const p = t.slice(0, i), w = main(p), s = m.streamRaw(p, owner, cache, 0); | |
| cmp++; if (s) { split++; if (!m.same(w, s)) { bad++; console.log("MISMATCH", f, i); } } | |
| } | |
| } | |
| } | |
| console.log(JSON.stringify({ files: process.argv.length - 2, prefixes: cmp, split, mismatches: bad })); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":209.7}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":85.2}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":4394}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":265.2}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":82842.8}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":859.3}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":1211.8}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":141.6}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":849.1}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":714.8}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":571.4}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":833.9}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":5183.4,"perMessageMs":[23.24,39.82,0.13,0.12,0.16,0.43,78.53,0.08,0.12,129.16,132.94,49.49,0.31,157.53,147.37,205.55,393.24,1038.34,1.64,2785.18]}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":604.7,"perMessageMs":[27.52,35.99,0.24,0.27,0.42,2.52,41.08,1.01,0.49,41.14,25.04,34.85,0.73,18.57,162.69,18.38,32.88,66.61,10.26,83.97]}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":826.7}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":181.1}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":20675.1}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":939.4}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3005.4}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3141.8}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2028.1}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1959.2}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":23294.2,"perMessageMs":[34.23,100.76,0.31,0.33,0.46,0.81,191.89,0.66,0.85,529.46,530.95,273.91,2.27,561.4,624.2,1594.67,2463.03,4436.68,18.3,11928.99]}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":2018.5,"perMessageMs":[28.88,43.81,0.46,1.41,0.58,1.06,67.62,2.08,1.01,110.61,78.38,116.61,3.11,75.51,711.11,108.23,138.51,189.42,15.3,324.75]}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":144.2}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":55.6}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":3822.7}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":210.1}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":74830.5}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":922.4}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":1036.1}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":118.1}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":774}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":832.6}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":680.2}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":728.2}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":6202.2,"perMessageMs":[34.88,34.25,0.12,0.06,0.13,0.62,78.83,0.12,0.21,221.44,170.31,57.09,0.32,212.18,231.08,340.26,578.81,1143.02,2.89,3095.56]}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":653.9,"perMessageMs":[35.8,18.71,0.13,0.13,0.23,0.68,27.6,0.45,0.33,42.08,22.32,30.93,1.14,24.45,193.07,34.46,45.5,72.09,5.63,98.12]}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":910.3}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":176.4}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":21139.8}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":799.3}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3585.1}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3876.5}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2312.5}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2350.1}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":28010.2,"perMessageMs":[38.78,122.52,0.81,0.57,0.52,1.09,229.67,0.67,0.91,665.45,702.1,343.48,2.67,767.03,999.81,1740.1,2872.93,5171.12,25.25,14324.65]}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":3333.8,"perMessageMs":[49.71,81.94,0.53,1.63,0.94,1.44,85.01,1.55,1.22,167.07,126.88,114.37,2.74,100.66,1192.58,224.99,220.77,264.41,20.94,674.39]}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":251.4}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":106.5}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":4863.5}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":234.9}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":63813.1}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":768.8}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":796.4}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":78}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":593.4}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":551.6}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":398.1}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":425.5}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":3533.4,"perMessageMs":[20.81,32.63,0.06,0.05,0.08,0.35,44.04,0.06,0.11,109.43,97.47,47.96,0.31,179.96,106.71,161.38,287.22,583.04,1.47,1860.31]}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":393.7,"perMessageMs":[18.26,19.63,0.1,0.24,0.21,0.53,18.79,0.55,0.38,27.56,16.93,19.62,0.67,16.35,111.58,21.2,22.88,35.1,4.28,58.87]}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":574.7}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":125}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":14927.8}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":530.4}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2193.1}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3484.9}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1563.9}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1625.4}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":21813.6,"perMessageMs":[28.59,67.96,0.29,0.32,0.45,1,163.9,0.67,0.89,476.69,509.29,251.41,2.33,542.03,615.46,1430.72,2411.65,3854.32,21.89,11433.74]}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":2312.6,"perMessageMs":[32.87,49.16,0.33,0.44,0.55,28.36,53.13,1.53,0.98,91.71,76.01,80.62,2.05,65.73,753.78,122.87,153.71,249.98,19.66,529.1]}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":346.2}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":79.9}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":3649}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":192.8}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":65732.2}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":704.3}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":846}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":80}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":586.5}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":579.2}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":497.1}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":511.2}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":4131.3,"perMessageMs":[19.13,34.84,0.06,0.05,0.08,0.53,52.63,0.07,0.12,171.52,130.53,64.12,0.36,123.16,136.77,176.44,331.36,747.75,1.45,2140.31]}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":435.3,"perMessageMs":[23.88,18.02,0.27,0.4,0.19,0.54,19.56,0.42,0.33,25.74,16.32,21.15,0.66,15.66,138.35,18.18,25.57,40.46,3.77,65.85]}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":560.9}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":144.9}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":15556.3}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":558}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2630.2}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2549.1}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1560.8}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1644.9}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":22453.7,"perMessageMs":[28.86,71.22,0.28,0.31,0.44,0.75,158.09,0.66,0.85,470.07,544.59,272.98,2.28,540.07,619.98,1393.55,2198.22,4166.48,21.69,11962.31]}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":2237.9,"perMessageMs":[30.99,52.76,0.34,0.44,0.54,0.94,63.42,1.5,1.29,118.9,102.06,105.03,3.12,118.46,796.58,120.96,144.67,201.7,15.81,358.36]}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":174.7}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":65}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":3374.3}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":210.5}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":68309.9}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":1183.2}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":822.6}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":79.2}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":819.2}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":709.2}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":479.6}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":480.7}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":4923,"perMessageMs":[25.05,23.81,0.06,0.05,0.11,0.45,157.46,0.07,0.12,350.12,104.1,53.85,0.32,276.71,109.35,208.06,403.04,872.89,1.61,2335.73]}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":513.7,"perMessageMs":[29,94.09,0.16,0.17,0.22,0.62,21.71,0.42,0.22,23.96,18.03,22.95,0.68,17.62,111.7,15.85,24.01,45.57,5.63,81.04]}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":576.4}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":121.6}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":15479}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":620.2}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2514.4}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2900.5}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1965.7}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2124.9}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":22894.3,"perMessageMs":[30.6,78.1,0.3,0.32,0.47,18.34,173.52,0.67,0.87,560.57,643.08,271.47,2.36,598.35,698.26,1706.62,2531.35,4034.71,17.47,11526.87]}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":1902.7,"perMessageMs":[27.49,42.47,0.33,0.45,0.56,0.97,49.3,1.63,1.25,97.58,77.33,82.4,2.04,68.26,658.4,101.15,142.2,199.67,15.35,333.93]}} | |
| {"round":6,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":488.1}} | |
| {"round":6,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":530.2}} | |
| {"round":6,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":369.4}} | |
| {"round":6,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":393}} | |
| {"round":6,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2356.5}} | |
| {"round":6,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2350.5}} | |
| {"round":6,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1563.4}} | |
| {"round":6,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1554.6}} | |
| {"round":7,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":695.7}} | |
| {"round":7,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":583.7}} | |
| {"round":7,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":472}} | |
| {"round":7,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":450.6}} | |
| {"round":7,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2348.7}} | |
| {"round":7,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2373.6}} | |
| {"round":7,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1741}} | |
| {"round":7,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1664.1}} | |
| {"round":8,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":457.7}} | |
| {"round":8,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":485.7}} | |
| {"round":8,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":466.7}} | |
| {"round":8,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":387.2}} | |
| {"round":8,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2358.9}} | |
| {"round":8,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2461}} | |
| {"round":8,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1497.5}} | |
| {"round":8,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1594.2}} | |
| {"round":9,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":518.1}} | |
| {"round":9,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":564.3}} | |
| {"round":9,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":371.1}} | |
| {"round":9,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":382.2}} | |
| {"round":9,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2183}} | |
| {"round":9,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2373.3}} | |
| {"round":9,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1530.3}} | |
| {"round":9,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1655.9}} | |
| {"round":10,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":553.4}} | |
| {"round":10,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":557.4}} | |
| {"round":10,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":431.2}} | |
| {"round":10,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":413.2}} | |
| {"round":10,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2612.2}} | |
| {"round":10,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3718}} | |
| {"round":10,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2055.1}} | |
| {"round":10,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2141.3}} | |
| {"round":11,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":774.8}} | |
| {"round":11,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":763}} | |
| {"round":11,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":557}} | |
| {"round":11,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":634.1}} | |
| {"round":11,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3136.3}} | |
| {"round":11,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3562.4}} | |
| {"round":11,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2088.3}} | |
| {"round":11,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2620.6}} | |
| {"round":12,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":787.6}} | |
| {"round":12,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":763.2}} | |
| {"round":12,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":563}} | |
| {"round":12,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":789.9}} | |
| {"round":12,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3464.2}} | |
| {"round":12,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3653.8}} | |
| {"round":12,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2221.7}} | |
| {"round":12,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2489.6}} | |
| {"round":13,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1025.9}} | |
| {"round":13,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":940}} | |
| {"round":13,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":653.5}} | |
| {"round":13,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":663.3}} | |
| {"round":13,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3455.4}} | |
| {"round":13,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3327}} | |
| {"round":13,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2315.9}} | |
| {"round":13,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2257.2}} | |
| {"round":14,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":825.7}} | |
| {"round":14,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":952}} | |
| {"round":14,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":730.1}} | |
| {"round":14,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":762}} | |
| {"round":14,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3734.5}} | |
| {"round":14,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3820.3}} | |
| {"round":14,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2565.2}} | |
| {"round":14,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2925.1}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"round":6,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":488.1}} | |
| {"round":6,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":530.2}} | |
| {"round":6,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":369.4}} | |
| {"round":6,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":393}} | |
| {"round":6,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2356.5}} | |
| {"round":6,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2350.5}} | |
| {"round":6,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1563.4}} | |
| {"round":6,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1554.6}} | |
| {"round":7,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":695.7}} | |
| {"round":7,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":583.7}} | |
| {"round":7,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":472}} | |
| {"round":7,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":450.6}} | |
| {"round":7,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2348.7}} | |
| {"round":7,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2373.6}} | |
| {"round":7,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1741}} | |
| {"round":7,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1664.1}} | |
| {"round":8,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":457.7}} | |
| {"round":8,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":485.7}} | |
| {"round":8,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":466.7}} | |
| {"round":8,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":387.2}} | |
| {"round":8,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2358.9}} | |
| {"round":8,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2461}} | |
| {"round":8,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1497.5}} | |
| {"round":8,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1594.2}} | |
| {"round":9,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":518.1}} | |
| {"round":9,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":564.3}} | |
| {"round":9,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":371.1}} | |
| {"round":9,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":382.2}} | |
| {"round":9,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2183}} | |
| {"round":9,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2373.3}} | |
| {"round":9,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1530.3}} | |
| {"round":9,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1655.9}} | |
| {"round":10,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":553.4}} | |
| {"round":10,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":557.4}} | |
| {"round":10,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":431.2}} | |
| {"round":10,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":413.2}} | |
| {"round":10,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2612.2}} | |
| {"round":10,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3718}} | |
| {"round":10,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2055.1}} | |
| {"round":10,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2141.3}} | |
| {"round":11,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":774.8}} | |
| {"round":11,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":763}} | |
| {"round":11,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":557}} | |
| {"round":11,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":634.1}} | |
| {"round":11,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3136.3}} | |
| {"round":11,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3562.4}} | |
| {"round":11,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2088.3}} | |
| {"round":11,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2620.6}} | |
| {"round":12,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":787.6}} | |
| {"round":12,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":763.2}} | |
| {"round":12,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":563}} | |
| {"round":12,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":789.9}} | |
| {"round":12,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3464.2}} | |
| {"round":12,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3653.8}} | |
| {"round":12,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2221.7}} | |
| {"round":12,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2489.6}} | |
| {"round":13,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1025.9}} | |
| {"round":13,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":940}} | |
| {"round":13,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":653.5}} | |
| {"round":13,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":663.3}} | |
| {"round":13,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3455.4}} | |
| {"round":13,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3327}} | |
| {"round":13,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2315.9}} | |
| {"round":13,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2257.2}} | |
| {"round":14,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":825.7}} | |
| {"round":14,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":952}} | |
| {"round":14,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":730.1}} | |
| {"round":14,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":762}} | |
| {"round":14,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3734.5}} | |
| {"round":14,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3820.3}} | |
| {"round":14,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2565.2}} | |
| {"round":14,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2925.1}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"kb":5,"jitless":false,"otherPassesMs":0.01,"conversionMs":25.79} | |
| {"kb":5,"jitless":true,"otherPassesMs":0.02,"conversionMs":52.44} | |
| {"kb":20,"jitless":false,"otherPassesMs":0.02,"conversionMs":82.72} | |
| {"kb":20,"jitless":true,"otherPassesMs":0.04,"conversionMs":238.43} | |
| {"kb":50,"jitless":false,"otherPassesMs":0.06,"conversionMs":181.01} | |
| {"kb":50,"jitless":true,"otherPassesMs":0.08,"conversionMs":536.83} | |
| {"kb":200,"jitless":false,"otherPassesMs":0.21,"conversionMs":877.39} | |
| {"kb":200,"jitless":true,"otherPassesMs":0.33,"conversionMs":2396.67} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // usage: node [--jitless] bench-other.mjs <kb> -> median ms of the other per-update passes vs the main conversion, one update at <kb> | |
| import os from "node:os"; os.setPriority(0, os.constants.priority.PRIORITY_BELOW_NORMAL); | |
| const o = await import("./bundle-other.mjs"); const m = await import("./bundle.mjs"); | |
| const kb = Number(process.argv[2]); const BT = "`"; | |
| let t = ""; for (let i = 0; t.length < kb * 1024; i++) t += `## Step ${i}\n\nThe handler in ${BT}apps/server/src/ws.ts:${i}${BT} calls **x**. See [docs](https://example.com/${i}).\n\n${BT}${BT}${BT}ts\nexport function h${i}(a: Array<string>) {\n return a.length + ${i};\n}\n${BT}${BT}${BT}\n\n- item ${BT}src/a${i}.ts${BT}\n- item\n\n`; | |
| t = t.slice(0, kb * 1024); | |
| const med = (f) => { const x = []; for (let r = 0; r < 11; r++) { const s = performance.now(); f(); x.push(performance.now() - s); } x.sort((a, b) => a - b); return +x[5].toFixed(2); }; | |
| console.log(JSON.stringify({ kb, jitless: process.execArgv.includes("--jitless"), otherPassesMs: med(() => o.otherPasses(t)), conversionMs: med(() => m.mainEmbed(t)) })); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // usage: node [--jitless] bench-split.mjs <kind> <kb> -> median ms of one splitMarkdownStreamBlocks call on that text | |
| const m = await import("./bundle.mjs"); | |
| const [kind, kbS] = process.argv.slice(2); const kb = Number(kbS); const BT = "`"; | |
| const gens = { | |
| code: (i) => `## Step ${i}\n\nThe handler in ${BT}apps/server/src/ws.ts:${i}${BT} calls **x**. See [docs](https://example.com/${i}).\n\n${BT}${BT}${BT}ts\nexport function h${i}(a: Array<string>) {\n return a.length + ${i};\n}\n${BT}${BT}${BT}\n\n- item ${BT}src/a${i}.ts${BT}\n- item\n\n`, | |
| list: (i) => `- item ${i} touches ${BT}src/lib/file${i}.ts:${i}${BT} and returns Array<string>\n`, | |
| }; | |
| let t = ""; for (let i = 0; t.length < kb * 1024; i++) t += gens[kind](i); t = t.slice(0, kb * 1024); | |
| const x = []; for (let r = 0; r < 21; r++) { const s = performance.now(); m.splitMarkdownStreamBlocks(t); x.push(performance.now() - s); } | |
| x.sort((a, b) => a - b); console.log(JSON.stringify({ kind, kb, jitless: process.execArgv.includes("--jitless"), splitMedianMs: +x[10].toFixed(3), min: +x[0].toFixed(3) })); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":209.7}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":85.2}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":4394}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":265.2}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":82842.8}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":859.3}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":1211.8}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":141.6}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":849.1}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":714.8}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":571.4}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":833.9}} | |
| {"round":1,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":5183.4,"perMessageMs":[23.24,39.82,0.13,0.12,0.16,0.43,78.53,0.08,0.12,129.16,132.94,49.49,0.31,157.53,147.37,205.55,393.24,1038.34,1.64,2785.18]}} | |
| {"round":1,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":604.7,"perMessageMs":[27.52,35.99,0.24,0.27,0.42,2.52,41.08,1.01,0.49,41.14,25.04,34.85,0.73,18.57,162.69,18.38,32.88,66.61,10.26,83.97]}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":826.7}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":181.1}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":20675.1}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":939.4}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3005.4}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3141.8}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2028.1}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1959.2}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":23294.2,"perMessageMs":[34.23,100.76,0.31,0.33,0.46,0.81,191.89,0.66,0.85,529.46,530.95,273.91,2.27,561.4,624.2,1594.67,2463.03,4436.68,18.3,11928.99]}} | |
| {"round":1,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":2018.5,"perMessageMs":[28.88,43.81,0.46,1.41,0.58,1.06,67.62,2.08,1.01,110.61,78.38,116.61,3.11,75.51,711.11,108.23,138.51,189.42,15.3,324.75]}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":144.2}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":55.6}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":3822.7}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":210.1}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":74830.5}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":922.4}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":1036.1}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":118.1}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":774}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":832.6}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":680.2}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":728.2}} | |
| {"round":2,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":6202.2,"perMessageMs":[34.88,34.25,0.12,0.06,0.13,0.62,78.83,0.12,0.21,221.44,170.31,57.09,0.32,212.18,231.08,340.26,578.81,1143.02,2.89,3095.56]}} | |
| {"round":2,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":653.9,"perMessageMs":[35.8,18.71,0.13,0.13,0.23,0.68,27.6,0.45,0.33,42.08,22.32,30.93,1.14,24.45,193.07,34.46,45.5,72.09,5.63,98.12]}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":910.3}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":176.4}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":21139.8}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":799.3}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3585.1}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3876.5}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2312.5}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2350.1}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":28010.2,"perMessageMs":[38.78,122.52,0.81,0.57,0.52,1.09,229.67,0.67,0.91,665.45,702.1,343.48,2.67,767.03,999.81,1740.1,2872.93,5171.12,25.25,14324.65]}} | |
| {"round":2,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":3333.8,"perMessageMs":[49.71,81.94,0.53,1.63,0.94,1.44,85.01,1.55,1.22,167.07,126.88,114.37,2.74,100.66,1192.58,224.99,220.77,264.41,20.94,674.39]}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":251.4}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":106.5}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":4863.5}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":234.9}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":63813.1}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":768.8}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":796.4}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":78}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":593.4}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":551.6}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":398.1}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":425.5}} | |
| {"round":3,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":3533.4,"perMessageMs":[20.81,32.63,0.06,0.05,0.08,0.35,44.04,0.06,0.11,109.43,97.47,47.96,0.31,179.96,106.71,161.38,287.22,583.04,1.47,1860.31]}} | |
| {"round":3,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":393.7,"perMessageMs":[18.26,19.63,0.1,0.24,0.21,0.53,18.79,0.55,0.38,27.56,16.93,19.62,0.67,16.35,111.58,21.2,22.88,35.1,4.28,58.87]}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":574.7}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":125}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":14927.8}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":530.4}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2193.1}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":3484.9}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1563.9}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1625.4}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":21813.6,"perMessageMs":[28.59,67.96,0.29,0.32,0.45,1,163.9,0.67,0.89,476.69,509.29,251.41,2.33,542.03,615.46,1430.72,2411.65,3854.32,21.89,11433.74]}} | |
| {"round":3,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":2312.6,"perMessageMs":[32.87,49.16,0.33,0.44,0.55,28.36,53.13,1.53,0.98,91.71,76.01,80.62,2.05,65.73,753.78,122.87,153.71,249.98,19.66,529.1]}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":346.2}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":79.9}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":3649}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":192.8}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":65732.2}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":704.3}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":846}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":80}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":586.5}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":579.2}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":497.1}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":511.2}} | |
| {"round":4,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":4131.3,"perMessageMs":[19.13,34.84,0.06,0.05,0.08,0.53,52.63,0.07,0.12,171.52,130.53,64.12,0.36,123.16,136.77,176.44,331.36,747.75,1.45,2140.31]}} | |
| {"round":4,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":435.3,"perMessageMs":[23.88,18.02,0.27,0.4,0.19,0.54,19.56,0.42,0.33,25.74,16.32,21.15,0.66,15.66,138.35,18.18,25.57,40.46,3.77,65.85]}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":560.9}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":144.9}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":15556.3}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":558}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2630.2}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2549.1}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1560.8}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1644.9}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":22453.7,"perMessageMs":[28.86,71.22,0.28,0.31,0.44,0.75,158.09,0.66,0.85,470.07,544.59,272.98,2.28,540.07,619.98,1393.55,2198.22,4166.48,21.69,11962.31]}} | |
| {"round":4,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":2237.9,"perMessageMs":[30.99,52.76,0.34,0.44,0.54,0.94,63.42,1.5,1.29,118.9,102.06,105.03,3.12,118.46,796.58,120.96,144.67,201.7,15.81,358.36]}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":174.7}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":65}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":3374.3}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":210.5}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":0,"totalMs":68309.9}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"code","arg":"200","step":500,"messages":1,"updates":410,"splitUpdates":406,"totalMs":1183.2}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":822.6}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"prose","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":79.2}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":819.2}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":709.2}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":479.6}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":480.7}} | |
| {"round":5,"runtime":"v8","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":4923,"perMessageMs":[25.05,23.81,0.06,0.05,0.11,0.45,157.46,0.07,0.12,350.12,104.1,53.85,0.32,276.71,109.35,208.06,403.04,872.89,1.61,2335.73]}} | |
| {"round":5,"runtime":"v8","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":513.7,"perMessageMs":[29,94.09,0.16,0.17,0.22,0.62,21.71,0.42,0.22,23.96,18.03,22.95,0.68,17.62,111.7,15.85,24.01,45.57,5.63,81.04]}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":0,"totalMs":576.4}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"10","step":500,"messages":1,"updates":21,"splitUpdates":17,"totalMs":121.6}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":0,"totalMs":15479}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"code","arg":"50","step":500,"messages":1,"updates":103,"splitUpdates":99,"totalMs":620.2}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2514.4}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"list","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2900.5}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":1965.7}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"steps","arg":"20","step":500,"messages":1,"updates":41,"splitUpdates":0,"totalMs":2124.9}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"old","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":0,"totalMs":22894.3,"perMessageMs":[30.6,78.1,0.3,0.32,0.47,18.34,173.52,0.67,0.87,560.57,643.08,271.47,2.36,598.35,698.26,1706.62,2531.35,4034.71,17.47,11526.87]}} | |
| {"round":5,"runtime":"jitless","row":{"mode":"new","kind":"files","arg":"files.txt","step":200,"messages":20,"updates":900,"splitUpdates":654,"totalMs":1902.7,"perMessageMs":[27.49,42.47,0.33,0.45,0.56,0.97,49.3,1.63,1.25,97.58,77.33,82.4,2.04,68.26,658.4,101.15,142.2,199.67,15.35,333.93]}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // usage: node [--jitless] bench.mjs <old|new> <kind> <kb> [step=500] kind: code | prose | list | steps | |
| // node [--jitless] bench.mjs <old|new> files <listfile> [step=200] listfile: one repo Markdown path per line | |
| // old = main's whole-text conversion per update. new = the component's streaming path (default 2048 threshold) | |
| // plus the one whole-text conversion when streaming ends. Prints one JSON row. | |
| import fs from "node:fs"; | |
| import os from "node:os"; | |
| os.setPriority(0, os.constants.priority.PRIORITY_BELOW_NORMAL); | |
| const m = await import("./bundle.mjs"); | |
| const [mode, kind, arg, stepArg] = process.argv.slice(2); | |
| const BT = "`"; | |
| const code = (i) => `## Step ${i}: update the handler | |
| The handler in ${BT}apps/server/src/ws.ts:${100 + i}${BT} calls **resolveThread** and then ${BT}packages/shared/src/git.ts${BT} to compute the result; this keeps the *invariant* that every id is unique. See [the docs](https://example.com/docs/${i}) for more detail on how this works in practice and why we picked it. | |
| ${BT}${BT}${BT}ts | |
| export function handler${i}(input: Array<string>): Map<string, number> { | |
| const out = new Map(); | |
| for (const item of input) out.set(item, item.length + ${i}); | |
| return out; | |
| } | |
| ${BT}${BT}${BT} | |
| - first item with ${BT}inline${BT} code | |
| - second item referencing ${BT}src/features/threads/ThreadFeed.tsx${BT} | |
| - third item with a [link](https://example.com) | |
| `; | |
| const prose = (i) => `Paragraph ${i} explains the change in plain words and mentions ${BT}src/lib/file${i}.ts:${i}${BT} once, then keeps going with a few more sentences so that it has a realistic length for a chat answer.\n\n`; | |
| const list = (i) => `- item ${i} touches ${BT}src/lib/file${i}.ts:${i}${BT} and returns Array<string>\n`; | |
| const steps = (i) => `${i + 1}. **Step ${i}**\n\n Change ${BT}src/lib/file${i}.ts${BT} so that the handler returns early.\n\n ${BT}${BT}${BT}ts\n const x${i} = ${i};\n ${BT}${BT}${BT}\n\n`; | |
| const gens = { code, prose, list, steps }; | |
| const texts = []; | |
| if (kind === "files") { | |
| for (const f of fs.readFileSync(arg, "utf8").split("\n").filter(Boolean)) texts.push(fs.readFileSync(f, "utf8")); | |
| } else { | |
| const kb = Number(arg); | |
| let t = ""; for (let i = 0; t.length < kb * 1024; i++) t += gens[kind](i); | |
| texts.push(t.slice(0, kb * 1024)); | |
| } | |
| const step = Number(stepArg ?? (kind === "files" ? 200 : 500)); | |
| const owner = m.label; | |
| let total = 0, updates = 0, split = 0, maxSave = 0; | |
| const perMsg = []; | |
| for (const text of texts) { | |
| const cache = m.createNativeMarkdownBlockCache(); | |
| const s = performance.now(); | |
| for (let i = step; i < text.length + step; i += step) { | |
| const p = text.slice(0, Math.min(i, text.length)); | |
| if (mode === "old") m.mainEmbed(p); | |
| else { const r = m.streamRaw(p, owner, cache, 2048); if (r) split++; else m.mainEmbed(p); } | |
| updates++; | |
| } | |
| if (mode === "new") m.mainEmbed(text); // the whole-text conversion when streaming ends | |
| const d = performance.now() - s; | |
| total += d; perMsg.push(+d.toFixed(2)); | |
| } | |
| console.log(JSON.stringify({ mode, kind, arg, step, messages: texts.length, updates, splitUpdates: split, totalMs: +total.toFixed(1), perMessageMs: texts.length > 1 ? perMsg : undefined })); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Bundles entry.ts (the worktree's mobile markdown modules) for the node scripts here. | |
| // usage: [ENTRY=entry-other.ts] node build.mjs [out=bundle.mjs] [mutant] mutant: a name from MUTANTS (breaks one safeguard on purpose) | |
| import fs from "node:fs"; | |
| import { pathToFileURL } from "node:url"; | |
| const SHARED = "<SCRATCH>/t3code-perf/"; | |
| const MUTANTS = { | |
| // each: [from, to] applied to markdownStreamBlocks.ts | |
| "per-block-gate": ["linkFiles ||= entry.mayLinkFiles;", "linkFiles = entry.mayLinkFiles;"], | |
| "no-definition-gate": [String.raw`const UNSAFE_LINE = /\]:|`, "const UNSAFE_LINE = /"], | |
| "no-resplit-check": ["if (rewritten && !splitsAsParsed(", "if (false && !splitsAsParsed("], | |
| "no-fake-fence-rule": ["if (fence === null && !opener && FENCE_PATTERN.test(line)) return null;", ""], | |
| "trim-blank": ["BLANK_LINE.test(line)", "line.trim() === \"\""], | |
| "no-html-prefix": [String.raw`^[ \t>]*(?:(?:[-*+]|\d{1,9}[.)])[ \t]+[ \t>]*)*<[A-Za-z!?/]`, "^ {0,3}<[A-Za-z!?/]"], | |
| "no-bom-gate": [" || text.includes(BYTE_ORDER_MARK)", ""], | |
| "no-cr-gate": ['text.includes("' + String.fromCharCode(92) + 'r") || ', ""], | |
| "fence-closer-trim": ["FENCE_CLOSER.test(line)", "line.trim() === opener"], | |
| }; | |
| const mutant = process.argv[3]; | |
| const plugins = mutant ? [{ name: "mutant", setup(b) { b.onLoad({ filter: /markdownStreamBlocks\.ts$/ }, (a) => { | |
| const [from, to] = MUTANTS[mutant]; const src = fs.readFileSync(a.path, "utf8"); | |
| if (!src.includes(from)) throw new Error("mutant target missing: " + mutant); | |
| return { contents: src.replace(from, to), loader: "ts" }; | |
| }); } }] : []; | |
| const esb = await import(pathToFileURL(SHARED + "node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js").href); | |
| await esb.build({ entryPoints: [process.env.ENTRY ?? "entry.ts"], bundle: true, platform: "node", format: "esm", outfile: process.argv[2] ?? "bundle.mjs", logLevel: "warning", plugins, | |
| absWorkingDir: process.cwd(), nodePaths: [SHARED + "node_modules", SHARED + "apps/mobile/node_modules"], mainFields: ["module", "main"], conditions: ["import", "default"], | |
| external: ["react-native", "react", "expo*"] }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"docs":564,"comparisons":183133,"coldSplit":1060,"prefixes":182005,"prefixSplit":168434,"mismatches":0,"seconds":561.95} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Differential over repo Markdown (docs, READMEs, changelogs): cold, plus streamed prefixes through one cache. | |
| // usage: node diff.mjs <worktree> [seed] [maxDocs] [bundle] | |
| import fs from "node:fs"; | |
| import os from "node:os"; | |
| import { execFileSync } from "node:child_process"; | |
| os.setPriority(0, os.constants.priority.PRIORITY_BELOW_NORMAL); | |
| const [REPO, seed0 = "1", maxDocs = "100000", bundle = "./bundle.mjs"] = process.argv.slice(2); | |
| const m = await import(bundle); | |
| let seed = Number(seed0); | |
| const rnd = () => ((seed = (seed * 1664525 + 1013904223) >>> 0) / 2 ** 32); | |
| const files = execFileSync("git", ["-C", REPO, "ls-files", "*.md"], { encoding: "utf8", maxBuffer: 1e8 }).split("\n").filter((f) => f && !f.includes("node_modules")); | |
| let docs = 0, cmp = 0, bad = 0, splitCold = 0, splitPrefix = 0, prefixTotal = 0; | |
| const t0 = Date.now(); | |
| for (const f of files.slice(0, Number(maxDocs))) { | |
| let t; try { t = fs.readFileSync(REPO + "/" + f, "utf8"); } catch { continue; } | |
| if (t.length === 0 || t.length > 60000) continue; | |
| docs++; | |
| for (const { name, owner, main } of m.owners) { | |
| const cold = m.createNativeMarkdownBlockCache(); | |
| const w = main(t), s = m.streamRaw(t, owner, cold, 0); | |
| cmp++; | |
| if (s) splitCold++; | |
| if (s && !m.same(w, s)) { bad++; fs.writeFileSync(`fail-${bad}.json`, JSON.stringify({ f, name, kind: "cold" })); console.log("MISMATCH cold", f, name); } | |
| const cuts = new Set([0, t.length]); | |
| if (t.length <= 600) for (let i = 0; i <= t.length; i++) cuts.add(i); | |
| else { | |
| const starts = [0]; for (let i = 0; i < t.length; i++) if (t[i] === "\n") starts.push(i + 1); | |
| for (let k = 0; k < 40; k++) { const L = starts[Math.floor(rnd() * starts.length)]; for (const d of [-1, 0, 1, 2, 3]) cuts.add(Math.max(0, Math.min(t.length, L + d))); } | |
| for (let k = 0; k < 20; k++) cuts.add(Math.floor(rnd() * (t.length + 1))); | |
| } | |
| const cache = m.createNativeMarkdownBlockCache(); | |
| for (const c of [...cuts].sort((a, b) => a - b)) { | |
| const p = t.slice(0, c); | |
| const ws = main(p), ss = m.streamRaw(p, owner, cache, 0); | |
| cmp++; prefixTotal++; | |
| if (ss) splitPrefix++; | |
| if (ss && !m.same(ws, ss)) { bad++; fs.writeFileSync(`fail-${bad}.json`, JSON.stringify({ f, name, kind: "prefix", at: c })); console.log("MISMATCH prefix", f, name, c); } | |
| } | |
| } | |
| } | |
| console.log(JSON.stringify({ docs, comparisons: cmp, coldSplit: splitCold, prefixes: prefixTotal, prefixSplit: splitPrefix, mismatches: bad, seconds: (Date.now() - t0) / 1000 })); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The other per-update passes a streaming assistant message runs over its whole text (ThreadFeed), for scale. | |
| import { renderAssistantCitationsAsText } from "@t3tools/shared/assistantCitations"; | |
| import { renderCodexInlineDirectivesAsMarkdown, splitCodexArtifactTemplateMarkdown } from "@t3tools/shared/codexMarkdownDirectives"; | |
| import { splitMarkdownDetails } from "<SCRATCH>/t3code-m002/apps/mobile/src/lib/markdownDetails"; | |
| import { hasWideMarkdownBlock } from "<SCRATCH>/t3code-m002/apps/mobile/src/lib/wideMarkdownBlocks"; | |
| import { hasThreadLinks } from "@t3tools/shared/threadLinks"; | |
| export function otherPasses(text: string) { | |
| const rendered = renderAssistantCitationsAsText(text); | |
| hasWideMarkdownBlock(rendered, { includeBlockquotes: false, includeOrderedLists: true }); | |
| hasThreadLinks(rendered); | |
| const blocks = splitMarkdownDetails(rendered).map((b: any) => (b.kind === "details" ? b : { ...b, segments: splitCodexArtifactTemplateMarkdown(b.markdown) })); | |
| for (const b of blocks) for (const s of (b as any).segments ?? []) if (s.kind !== "artifact-template") renderCodexInlineDirectivesAsMarkdown(s.markdown); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // WT is the worktree root; main's whole-text pipeline (convertNativeMarkdown) is the reference. | |
| import { | |
| convertNativeMarkdown, | |
| convertStreamingMarkdown, | |
| createNativeMarkdownBlockCache, | |
| nativeMarkdownPipeline, | |
| splitMarkdownStreamBlocks, | |
| } from "<SCRATCH>/t3code-m002/apps/mobile/src/lib/markdownStreamBlocks"; | |
| import { | |
| markdownForNativeParsing, | |
| markdownForNativeRendering, | |
| markdownWithFileEmbeds, | |
| markdownWithInlineFileLinks, | |
| markdownWithTableBreaks, | |
| } from "<SCRATCH>/t3code-m002/apps/mobile/src/lib/markdownDocument"; | |
| import { ENRICHED_INLINE_FILE_LINK_REGEX as RE } from "<SCRATCH>/t3code-m002/apps/mobile/src/lib/enrichedLinkPresentation"; | |
| export type R = { markdown: string; fileHrefs: ReadonlySet<string> }; | |
| export const label = (href: string, standalone: boolean) => (/\.(png|jpg)$/i.test(href) ? `${standalone ? "S" : "N"}:${href}` : null); | |
| // main's conversion, written out from main's unchanged public functions (two-argument forms). | |
| export const mainPlain = (t: string): R => ({ markdown: markdownForNativeRendering(t, RE), fileHrefs: new Set<string>() }); | |
| export const mainEmbed = (t: string): R => { | |
| const c = markdownWithInlineFileLinks(markdownForNativeParsing(t), RE); | |
| const f = markdownWithFileEmbeds(c, label); | |
| return { ...f, markdown: markdownWithTableBreaks(f.markdown) }; | |
| }; | |
| export const owners = [{ name: "plain", owner: undefined as any, main: mainPlain }, { name: "embed", owner: label as any, main: mainEmbed }]; | |
| /** What the component does for streaming text. */ | |
| export function stream(t: string, owner: any, cache: any, minLength = 0): R { | |
| return convertStreamingMarkdown(t, owner, cache, true, nativeMarkdownPipeline(owner), minLength) ?? convertNativeMarkdown(t, owner); | |
| } | |
| export function wholeOf(t: string, owner: any): R { return convertNativeMarkdown(t, owner); } | |
| export const same = (a: R, b: R) => a.markdown === b.markdown && a.fileHrefs.size === b.fileHrefs.size && [...a.fileHrefs].every((h) => b.fileHrefs.has(h)); | |
| export { createNativeMarkdownBlockCache, splitMarkdownStreamBlocks, convertStreamingMarkdown, nativeMarkdownPipeline, convertNativeMarkdown }; | |
| /** null = the component would fall back to the whole-text conversion. */ | |
| export function streamRaw(t: string, owner: any, cache: any, minLength = 0): R | null { | |
| return convertStreamingMarkdown(t, owner, cache, true, nativeMarkdownPipeline(owner), minLength); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <SCRATCH>/t3code-m002/packages/client-runtime/README.md | |
| <SCRATCH>/t3code-m002/.agents/skills/test-t3-app/references/sqlite-fixtures.md | |
| <SCRATCH>/t3code-m002/docs/user/html-renders.md | |
| <SCRATCH>/t3code-m002/docs/README.md | |
| <SCRATCH>/t3code-m002/docs/user/providers-opencode.md | |
| <SCRATCH>/t3code-m002/docs/user/permission-modes.md | |
| <SCRATCH>/t3code-m002/docs/user/outside-agents.md | |
| <SCRATCH>/t3code-m002/.macroscope/ignore.md | |
| <SCRATCH>/t3code-m002/docs/internals/mobile-navigation.md | |
| <SCRATCH>/t3code-m002/docs/operations/connect-setup.md | |
| <SCRATCH>/t3code-m002/.github/triage/PLAYBOOK.md | |
| <SCRATCH>/t3code-m002/docs/user/providers-antigravity.md | |
| <SCRATCH>/t3code-m002/docs/orchestration-v2/README.md | |
| <SCRATCH>/t3code-m002/docs/user/background-service.md | |
| <SCRATCH>/t3code-m002/CONTRIBUTING.md | |
| <SCRATCH>/t3code-m002/infra/task-cache/README.md | |
| <SCRATCH>/t3code-m002/docs/user/usage.md | |
| <SCRATCH>/t3code-m002/docs/user/managed-policy.md | |
| <SCRATCH>/t3code-m002/docs/user/composer.md | |
| <SCRATCH>/t3code-m002/docs/orchestration-v2/orchestrator-mcp-server.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "2", | |
| "docs": 45514, | |
| "splitDocs": 7534, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "3", | |
| "docs": 44783, | |
| "splitDocs": 7282, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "4", | |
| "docs": 52573, | |
| "splitDocs": 8758, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "prefix", | |
| "seed": "11", | |
| "docs": 4531, | |
| "splitDocs": 982, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "prefix", | |
| "seed": "12", | |
| "docs": 4308, | |
| "splitDocs": 870, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "prefix", | |
| "seed": "13", | |
| "docs": 5768, | |
| "splitDocs": 1200, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "7", | |
| "docs": 41705, | |
| "splitDocs": 6894, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "8", | |
| "docs": 50054, | |
| "splitDocs": 8285, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "prefix", | |
| "seed": "21", | |
| "docs": 3072, | |
| "splitDocs": 642, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "prefix", | |
| "seed": "22", | |
| "docs": 2924, | |
| "splitDocs": 645, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Token-level differential fuzz: block-split streaming conversion vs main's whole-text conversion. | |
| // usage: node fuzz.mjs <seed> <budgetMs> <cold|prefix> [bundle=./bundle.mjs] | |
| // cold: the whole generated text through a fresh cache. prefix: every prefix (chunk boundary at every offset) | |
| // through ONE shared cache, as a streamed reply would. minLength is forced to 0 so short texts split. | |
| import fs from "node:fs"; | |
| import os from "node:os"; | |
| os.setPriority(0, os.constants.priority.PRIORITY_BELOW_NORMAL); | |
| const [seed0 = "1", budget = "60000", mode = "cold", bundle = "./bundle.mjs"] = process.argv.slice(2); | |
| const m = await import(bundle); | |
| let seed = Number(seed0); | |
| const rnd = () => ((seed = (seed * 1664525 + 1013904223) >>> 0) / 2 ** 32); | |
| const pick = (a) => a[Math.floor(rnd() * a.length)]; | |
| const T = [ | |
| "\n", "\n", "\n", "\n\n", "\n\n", "\n\n", "\n \n", "\n\t\n", "\n\u00a0\n", "\n\f\n", "\n\u3000\n", "\n\u2028\n", "\n\u2003\n", | |
| "```", "```ts", "````", "~~~", "~~~~", " ```", "```\u00a0", "~~~\u3000", "``` ", "```\t", " ```", | |
| "- ", "* ", "+ ", "1. ", "2) ", "> ", ">", " ", " ", " ", "\t", "- [ ] ", | |
| "`src/a.ts`", "`a/b.ts:3`", "`x`", "``", "` `", "`` ` ``", "`", "\`", "[`src/a.ts`][r]", "[`src/a.ts`]", "[r]", "[t][r]", "![x][r]", "![r]", "", "", "", | |
| "[r]: p.png", "[r]: https://u.com", "[r]:", "[`src/a.ts`]: https://u.com", "[r\n", "r]: https://u.com", "\]", "]: x", "[foo\nbar]: u", "[im]: x.png", "arr[i]: v", | |
| "<b>", "</b>", "<p>", "</p>", "<div>", "</div>", "<br>", "<br/>", "<!-- c -->", "<a href=\"https://e.com\">", "</a>", "<a>", "<img src=\"p.png\">", "<img src=\"q.png\" alt=\"a]: b\">", "<details>", "</details>", "<summary>", "</summary>", "<pre>", "</pre>", "<script>", "<!--", "-->", "<?x", "?>", "<![CDATA[", "<style>", "Array<string>", "1 < 2", | |
| "|a|b|", "|-|-|", "| `a|b.ts` | c |", "| `src/a\|b.ts` | c |", "|:-:|-|", "---", "===", "***", "# ", "## h", "$$", ":::", ":::note", "x", "word ", " ", "**", "*", "_", "\\", "&", "[^1]", "[^1]: n", "~~s~~", | |
| String.raw`[w](C:\work\.t3\f.md)`, String.raw`C:\work\.t3\f.md`, String.raw`[v](<C:\a b\c.md>)`, String.raw`[w](` + "\n", "https://e.com", "\ufeff", "\u00a0", "\r\n", "\0", | |
| "`C:\\x\\y.ts`","`./rel/path.md`", "`/Users/me/f.ts`", "`README.md`", "`foo()`", "`a.b:3`", | |
| ]; | |
| const eq = m.same; | |
| const hits = new Map(); | |
| function check(t, label, prefixes) { | |
| for (const { name, owner, main } of m.owners) { | |
| const cache = m.createNativeMarkdownBlockCache(); | |
| const ends = prefixes ? Array.from({ length: t.length + 1 }, (_, i) => i) : [t.length]; | |
| for (const e of ends) { | |
| const p = t.slice(0, e); | |
| let a, b; | |
| try { a = main(p); b = m.stream(p, owner, cache, 0); } catch (err) { return { name, at: e, err: String(err) }; } | |
| if (!eq(a, b)) return { name, at: e, want: a.markdown, got: b.markdown }; | |
| } | |
| } | |
| return null; | |
| } | |
| const failing = (toks) => check(toks.join(""), "", mode === "prefix"); | |
| const shrink = (toks) => { | |
| let cur = toks, changed = true; | |
| while (changed) { changed = false; for (let i = 0; i < cur.length; i++) { const n = cur.slice(0, i).concat(cur.slice(i + 1)); if (failing(n)) { cur = n; changed = true; i--; } } } | |
| return cur; | |
| }; | |
| const classify = (t) => { | |
| const c = []; | |
| if (/\ufeff/.test(t)) c.push("bom"); | |
| if (/[^\S \t\n]/.test(t)) c.push("nonascii-ws"); | |
| if (/\]:/.test(t)) c.push("definition"); | |
| if (/<\/?(p|div|details|summary|br)\b/i.test(t)) c.push("linebreak-tag"); | |
| if (/<(?!!--)[a-z/?]|<!--/i.test(t)) c.push("html"); | |
| if (/`{3}|~{3}/.test(t)) c.push("fence"); | |
| if (/`/.test(t)) c.push("backtick"); | |
| return c.join("+") || "other"; | |
| }; | |
| const t0 = Date.now(); | |
| let n = 0, split = 0, fails = 0, cmp = 0; | |
| while (Date.now() - t0 < Number(budget)) { | |
| const toks = Array.from({ length: 3 + Math.floor(rnd() * (mode === "prefix" ? 9 : 14)) }, () => pick(T)); | |
| if (rnd() < 0.7) toks.splice(Math.floor(rnd() * toks.length), 0, "\n\n"); | |
| if (rnd() < 0.7) toks.push("\n\n", pick(["`src/z.ts`", "`src/z.ts`", "", "text"])); | |
| const t = toks.join(""); | |
| n++; | |
| if ((m.splitMarkdownStreamBlocks(t)?.length ?? 0) > 1) split++; | |
| if (!failing(toks)) continue; | |
| fails++; | |
| const min = shrink(toks).join(""); | |
| const r = check(min, "", mode === "prefix"); | |
| const k = classify(min); | |
| const prev = hits.get(k); | |
| if (!prev) hits.set(k, { count: 1, example: min, detail: r }); | |
| else { prev.count++; if (min.length < prev.example.length) { prev.example = min; prev.detail = r; } } | |
| } | |
| console.log(JSON.stringify({ mode, seed: seed0, docs: n, splitDocs: split, failingDocs: fails, classes: Object.fromEntries([...hits].sort((a, b) => b[1].count - a[1].count)) }, null, 1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 22590, | |
| "splitDocs": 3725, | |
| "failingDocs": 3, | |
| "classes": { | |
| "nonascii-ws+fence+backtick": { | |
| "count": 2, | |
| "example": "```\t\n\n``` \n\n`src/z.ts`", | |
| "detail": { | |
| "name": "plain", | |
| "at": 22, | |
| "want": "```\t\n\n``` \n\n`src/z.ts`", | |
| "got": "```\t\n\n``` \n\n[src/z.ts](<src/z.ts>)" | |
| } | |
| }, | |
| "nonascii-ws+fence": { | |
| "count": 1, | |
| "example": "~~~ \n \n~~~ \n\n", | |
| "detail": { | |
| "name": "embed", | |
| "at": 24, | |
| "want": "~~~ \n \n~~~ \n\n", | |
| "got": "~~~ \n \n~~~ \n\n[S:z.png](<z.png>)" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 21367, | |
| "splitDocs": 3797, | |
| "failingDocs": 33, | |
| "classes": { | |
| "bom+nonascii-ws+backtick": { | |
| "count": 17, | |
| "example": "\n\n`a.b:3`", | |
| "detail": { | |
| "name": "plain", | |
| "at": 10, | |
| "want": "\n\n[a.b:3](<a.b:3>)", | |
| "got": "\n\n[a.b:3](<a.b:3>)`" | |
| } | |
| }, | |
| "bom+nonascii-ws+html": { | |
| "count": 9, | |
| "example": "\n \n<b>", | |
| "detail": { | |
| "name": "plain", | |
| "at": 7, | |
| "want": "\n \n", | |
| "got": "\n \n>" | |
| } | |
| }, | |
| "bom+nonascii-ws": { | |
| "count": 6, | |
| "example": "\n\n", | |
| "detail": { | |
| "name": "embed", | |
| "at": 14, | |
| "want": "\n[S:z.png](<z.png>))", | |
| "got": "\n\n[S:z.png](<z.png>)" | |
| } | |
| }, | |
| "bom+nonascii-ws+linebreak-tag+html+fence+backtick": { | |
| "count": 1, | |
| "example": "\n \n```<details>", | |
| "detail": { | |
| "name": "plain", | |
| "at": 16, | |
| "want": "\n \n```\n\n", | |
| "got": "\n \n```<details>" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 21946, | |
| "splitDocs": 3828, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 21281, | |
| "splitDocs": 7632, | |
| "failingDocs": 18, | |
| "classes": { | |
| "definition+backtick": { | |
| "count": 12, | |
| "example": "[r]: p.png\n\n[`src/a.ts`][r]", | |
| "detail": { | |
| "name": "plain", | |
| "at": 27, | |
| "want": "[r]: p.png\n\n[`src/a.ts`][r]", | |
| "got": "[r]: p.png\n\n[[src/a.ts](<src/a.ts>)][r]" | |
| } | |
| }, | |
| "definition": { | |
| "count": 3, | |
| "example": "[r]: p.png\n\n![r]", | |
| "detail": { | |
| "name": "embed", | |
| "at": 16, | |
| "want": "[r]: p.png\n\n[S:p.png](<p.png>)", | |
| "got": "[r]: p.png\n\n![r]" | |
| } | |
| }, | |
| "definition+linebreak-tag+html+backtick": { | |
| "count": 1, | |
| "example": "- [ ] <details>* [r]: https://u.com\n\n[`src/a.ts`][r]", | |
| "detail": { | |
| "name": "plain", | |
| "at": 52, | |
| "want": "- [ ] \n\n* [r]: https://u.com\n\n[`src/a.ts`][r]", | |
| "got": "- [ ] \n\n* [r]: https://u.com\n\n[[src/a.ts](<src/a.ts>)][r]" | |
| } | |
| }, | |
| "nonascii-ws+definition+backtick": { | |
| "count": 1, | |
| "example": "[`src/a.ts`][r]\n\n[r]:\n \n", | |
| "detail": { | |
| "name": "plain", | |
| "at": 24, | |
| "want": "[`src/a.ts`][r]\n\n[r]:\n \n", | |
| "got": "[[src/a.ts](<src/a.ts>)][r]\n\n[r]:\n \n" | |
| } | |
| }, | |
| "definition+html+backtick": { | |
| "count": 1, | |
| "example": "[r]:<script>\n \n[`src/a.ts`][r]", | |
| "detail": { | |
| "name": "plain", | |
| "at": 30, | |
| "want": "[r]:<script>\n \n[`src/a.ts`][r]", | |
| "got": "[r]:<script>\n \n[[src/a.ts](<src/a.ts>)][r]" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 20459, | |
| "splitDocs": 3591, | |
| "failingDocs": 1, | |
| "classes": { | |
| "nonascii-ws+fence+backtick": { | |
| "count": 1, | |
| "example": "`a.b:3`\n\f\n``` `C:\\x\\y.ts`\n\n", | |
| "detail": { | |
| "name": "embed", | |
| "at": 38, | |
| "want": "[a.b:3](<a.b:3>)\n\f\n``` [C:\\\\x\\\\y.ts](<C:\\\\x\\\\y.ts>)\n\n", | |
| "got": "[a.b:3](<a.b:3>)\n\f\n``` [C:\\\\x\\\\y.ts](<C:\\\\x\\\\y.ts>)\n\n[S:z.png](<z.png>)" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "2", | |
| "docs": 49372, | |
| "splitDocs": 8496, | |
| "failingDocs": 1, | |
| "classes": { | |
| "linebreak-tag+html+backtick": { | |
| "count": 1, | |
| "example": "- < \n", | |
| "got": "- < \n" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 22273, | |
| "splitDocs": 3822, | |
| "failingDocs": 0, | |
| "classes": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 21705, | |
| "splitDocs": 3568, | |
| "failingDocs": 48, | |
| "classes": { | |
| "linebreak-tag+html+fence+backtick": { | |
| "count": 20, | |
| "example": "*</p>~~~\n\n`src/z.ts`", | |
| "detail": { | |
| "name": "plain", | |
| "at": 20, | |
| "want": "*\n\n~~~\n\n`src/z.ts`", | |
| "got": "*\n\n~~~\n\n[src/z.ts](<src/z.ts>)" | |
| } | |
| }, | |
| "linebreak-tag+html+backtick": { | |
| "count": 13, | |
| "example": "_<div><!--\n\n`src/z.ts`", | |
| "detail": { | |
| "name": "plain", | |
| "at": 22, | |
| "want": "_\n\n<!--\n\n`src/z.ts`", | |
| "got": "_\n\n<!--\n\n[src/z.ts](<src/z.ts>)" | |
| } | |
| }, | |
| "nonascii-ws+linebreak-tag+html+fence+backtick": { | |
| "count": 8, | |
| "example": "# <p>~~~ \n\n`src/z.ts`", | |
| "detail": { | |
| "name": "plain", | |
| "at": 21, | |
| "want": "# \n\n~~~ \n\n`src/z.ts`", | |
| "got": "# \n\n~~~ \n\n[src/z.ts](<src/z.ts>)" | |
| } | |
| }, | |
| "linebreak-tag+html+fence": { | |
| "count": 3, | |
| "example": ":::note<p>~~~~\n\n", | |
| "detail": { | |
| "name": "embed", | |
| "at": 27, | |
| "want": ":::note\n\n~~~~\n\n", | |
| "got": ":::note\n\n~~~~\n\n[S:z.png](<z.png>)" | |
| } | |
| }, | |
| "linebreak-tag+html": { | |
| "count": 2, | |
| "example": "[^1]</div><!--\n\n", | |
| "detail": { | |
| "name": "embed", | |
| "at": 27, | |
| "want": "[^1]\n\n<!--\n\n", | |
| "got": "[^1]\n\n<!--\n\n[S:z.png](<z.png>)" | |
| } | |
| }, | |
| "nonascii-ws+linebreak-tag+html+fence": { | |
| "count": 2, | |
| "example": ":::</p>~~~ \n\n", | |
| "detail": { | |
| "name": "embed", | |
| "at": 24, | |
| "want": ":::\n\n~~~ \n\n", | |
| "got": ":::\n\n~~~ \n\n[S:z.png](<z.png>)" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 21016, | |
| "splitDocs": 3458, | |
| "failingDocs": 383, | |
| "classes": { | |
| "backtick": { | |
| "count": 345, | |
| "example": "`a.b:3`\n\n\\", | |
| "detail": { | |
| "name": "plain", | |
| "at": 10, | |
| "want": "[a.b:3](<a.b:3>)\n\n\\", | |
| "got": "`a.b:3`\n\n\\" | |
| } | |
| }, | |
| "fence+backtick": { | |
| "count": 15, | |
| "example": "`a.b:3`\n\n```\t", | |
| "detail": { | |
| "name": "plain", | |
| "at": 13, | |
| "want": "[a.b:3](<a.b:3>)\n\n```\t", | |
| "got": "`a.b:3`\n\n```\t" | |
| } | |
| }, | |
| "nonascii-ws+backtick": { | |
| "count": 14, | |
| "example": "`a.b:3`[r\n\n \n", | |
| "detail": { | |
| "name": "plain", | |
| "at": 13, | |
| "want": "[a.b:3](<a.b:3>)[r\n\n \n", | |
| "got": "`a.b:3`[r\n\n \n" | |
| } | |
| }, | |
| "html+backtick": { | |
| "count": 4, | |
| "example": "\\<pre>`C:\\x\\y.ts`\n\ntext", | |
| "detail": { | |
| "name": "plain", | |
| "at": 23, | |
| "want": "\\<pre>[C:\\\\x\\\\y.ts](<C:\\\\x\\\\y.ts>)\n\ntext", | |
| "got": "\\<pre>`C:\\x\\y.ts`\n\ntext" | |
| } | |
| }, | |
| "nonascii-ws+fence+backtick": { | |
| "count": 4, | |
| "example": "`a.b:3`\n\n~~~ ", | |
| "detail": { | |
| "name": "plain", | |
| "at": 13, | |
| "want": "[a.b:3](<a.b:3>)\n\n~~~ ", | |
| "got": "`a.b:3`\n\n~~~ " | |
| } | |
| }, | |
| "nonascii-ws+html+fence+backtick": { | |
| "count": 1, | |
| "example": "https://e.com<!--`src/a.ts`\n\n~~~ ", | |
| "detail": { | |
| "name": "plain", | |
| "at": 33, | |
| "want": "https://e.com<!--[src/a.ts](<src/a.ts>)\n\n~~~ ", | |
| "got": "https://e.com<!--`src/a.ts`\n\n~~~ " | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mode": "cold", | |
| "seed": "5", | |
| "docs": 21952, | |
| "splitDocs": 3655, | |
| "failingDocs": 12, | |
| "classes": { | |
| "nonascii-ws": { | |
| "count": 4, | |
| "example": "\n \n", | |
| "detail": { | |
| "name": "embed", | |
| "at": 14, | |
| "want": "\n \n[N:p.png](<p.png>)", | |
| "got": "\n \n[S:p.png](<p.png>)" | |
| } | |
| }, | |
| "nonascii-ws+html": { | |
| "count": 4, | |
| "example": "- [ ] <!--\n \n-->", | |
| "detail": { | |
| "name": "plain", | |
| "at": 16, | |
| "want": "- [ ] ", | |
| "got": "- [ ] <!--\n \n-->" | |
| } | |
| }, | |
| "nonascii-ws+backtick": { | |
| "count": 2, | |
| "example": "`\n \n`a.b:3`", | |
| "detail": { | |
| "name": "plain", | |
| "at": 11, | |
| "want": "`\n \n`a.b:3`", | |
| "got": "`\n \n[a.b:3](<a.b:3>)" | |
| } | |
| }, | |
| "nonascii-ws+fence+backtick": { | |
| "count": 1, | |
| "example": "`./rel/path.md``` ` ``\n \n`./rel/path.md``[`src/a.ts`][r]", | |
| "detail": { | |
| "name": "plain", | |
| "at": 56, | |
| "want": "`./rel/path.md``` ` ``\n \n`./rel/path.md``[[src/a.ts](<src/a.ts>)][r]", | |
| "got": "`./rel/path.md``` ` ``\n \n`./rel/path.md``[`src/a.ts`][r]" | |
| } | |
| }, | |
| "nonascii-ws+html+backtick": { | |
| "count": 1, | |
| "example": "`</b>\n \n| `a|b.ts` | c |", | |
| "detail": { | |
| "name": "plain", | |
| "at": 24, | |
| "want": "`</b>\n \n| `a|b.ts` | c |", | |
| "got": "`\n \n| `a|b.ts` | c |" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ../../packages/client-runtime/src/state/review.ts(43,80): error TS2339: Property 'incomplete' does not exist on type '{ readonly cwd: string; readonly generatedAt: Utc; readonly sources: readonly { readonly id: string; readonly kind: "branch-range" | "commit" | "working-tree"; readonly title: string; readonly commitSubject?: string | undefined; ... 5 more ...; readonly files?: ... | undefined; }[]; }'. | |
| ../../packages/client-runtime/src/state/review.ts(46,15): error TS2339: Property 'sourceKind' does not exist on type '{ readonly cwd: string; readonly baseRef?: string | undefined; readonly commitSha?: string | undefined; readonly ignoreWhitespace?: boolean | undefined; readonly file?: { readonly path: string; readonly previousPath: string | null; readonly sourceKind: "branch-range" | ... 1 more ... | "working-tree"; } | undefined; }'. | |
| ../../packages/client-runtime/src/state/review.ts(49,16): error TS2339: Property 'trackedOnly' does not exist on type '{ readonly cwd: string; readonly baseRef?: string | undefined; readonly commitSha?: string | undefined; readonly ignoreWhitespace?: boolean | undefined; readonly file?: { readonly path: string; readonly previousPath: string | null; readonly sourceKind: "branch-range" | ... 1 more ... | "working-tree"; } | undefined; }'. | |
| ../../packages/client-runtime/src/state/review.ts(53,11): error TS2353: Object literal may only specify known properties, and 'trackedOnly' does not exist in type '{ readonly cwd: string; readonly baseRef?: string | undefined; readonly commitSha?: string | undefined; readonly ignoreWhitespace?: boolean | undefined; readonly file?: { readonly path: string; readonly previousPath: string | null; readonly sourceKind: "branch-range" | ... 1 more ... | "working-tree"; } | undefined; }'. | |
| ../../packages/client-runtime/src/state/review.ts(56,22): error TS2339: Property 'incomplete' does not exist on type '{ readonly cwd: string; readonly generatedAt: Utc; readonly sources: readonly { readonly id: string; readonly kind: "branch-range" | "commit" | "working-tree"; readonly title: string; readonly commitSubject?: string | undefined; ... 5 more ...; readonly files?: ... | undefined; }[]; }'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment