Skip to content

Instantly share code, notes, and snippets.

View greggman's full-sized avatar
😁

Greggman greggman

😁
View GitHub Profile
@greggman
greggman / jsBenchIt.json
Last active January 27, 2021 00:02 — forked from shu1/jsBenchIt.json
burrows-wheeler transform vs shu
{"title":"burrows-wheeler transform vs shu","initialization":"var output = \"endrtednedd:/os....cp.rnnn.rhhps/.tt|sfeaiaaofd.ow.otooapa.asu./thhse\";\n","setup":"var col = output.split('');","tests":[{"name":"Burrow-wheeler transform","code":"var table = output.split('');\nfor (var j = output.length; j > 1; --j) {\n\ttable.sort();\n\tfor (var i = table.length-1; i >= 0; --i) {\n\t\ttable[i] = col[i] + table[i];\n\t}\n}","results":{"aborted":false,"count":113,"cycles":4,"hz":1219.8233562316002,"stats":{"moe":0.00002169566642856311,"rme":2.646488063857111,"sem":0.000011069217565593424,"deviation":0.00008209151456328668,"mean":0.0008197908286403857,"variance":6.73901676329431e-9,"numSamples":55},"times":{"cycle":0.09263636363636359,"elapsed":6.806,"period":0.0008197908286403857,"timeStamp":1611705678923}},"platforms":{"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36":{"aborted":false,"count":58,"cycles":4,"hz":677.4569982405498,"stats":{"mo