Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🗽

Shuichi Aizawa shu1

💭
🗽
View GitHub Profile
View index.css
/*bug-in-github-api-content-can-not-be-empty*/
View index.css
/*bug-in-github-api-content-can-not-be-empty*/
@shu1
shu1 / jsBenchIt.json
Last active Jan 27, 2021
burrows-wheeler vs shu
View jsBenchIt.json
{"title":"burrows-wheeler vs shu","initialization":"var output = \"endrtednedd:/os....cp.rnnn.rhhps/.tt|sfeaiaaofd.ow.otooapa.asu./thhse\";","setup":"var col = output.split('');","tests":[{"name":"burrows-wheeler","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":75,"cycles":2,"hz":637.3545169037501,"stats":{"moe":0.000007622545676816873,"rme":0.48582639174243863,"sem":0.000003889053916743303,"deviation":0.00002637684698551886,"mean":0.0015689855072463772,"variance":6.957380568974753e-10,"numSamples":46},"times":{"cycle":0.1176739130434783,"elapsed":5.936,"period":0.0015689855072463772,"timeStamp":1611677282847}},"platforms":{"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15":{"aborted":false,"count":148,"cycles":5,"hz":1820.4881798962142,"stats":{"moe":0.0000047621458