Skip to content

Commit

Permalink
Bumped Version
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmoxley committed May 17, 2021
1 parent fed347f commit 6102340
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 101 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const hashmap = new HashMap(forEachObj);
* It must have an identical interface to JS Map
* It must be fully written in JS. (Transpiling is acceptable) So that we can guarantee it works in the browser, not just node.

### Benchmarks on version 1.0.4
### Benchmarks on version 1.0.5

![Set Get And Delete](BenchmarkSGD.png)

Expand Down
2 changes: 1 addition & 1 deletion benchmark_results/benchmarks.create.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"benchmark":"create","type":"single","results":[{"name":"@mootable/HashMap","ops":20278078,"margin":10.77,"options":{"delay":0.5,"initCount":1,"minTime":0.05,"maxTime":5,"minSamples":10},"samples":94,"promise":false,"details":{"min":4.3706797946999055e-8,"max":3.008344652197786e-7,"mean":4.931433908335877e-8,"median":4.634171991201424e-8,"standardDeviation":2.6273461803631347e-8,"marginOfError":5.3114053165387126e-9,"relativeMarginOfError":10.770508974196225,"standardErrorOfMean":2.709900671703425e-9,"sampleVariance":6.902947951468754e-16,"sampleResults":[4.3706797946999055e-8,4.417077616005028e-8,4.444680004189798e-8,4.447302817639049e-8,4.454911490520582e-8,4.467841206661779e-8,4.46863280946921e-8,4.4703048077930236e-8,4.470857861108202e-8,4.482103278516812e-8,4.485098752553945e-8,4.485924374148947e-8,4.4861841416151675e-8,4.4887818162773646e-8,4.493583324604588e-8,4.498024510317377e-8,4.514180370797109e-8,4.5277301770189585e-8,4.5317859013302613e-8,4.5321775563161116e-8,4.541992248873992e-8,4.543894417094375e-8,4.5469278307321676e-8,4.5536231276840896e-8,4.5551398345029855e-8,4.55514821409867e-8,4.555178151159082e-8,4.558458154394051e-8,4.558826856604169e-8,4.561583743584372e-8,4.562572535875144e-8,4.564575259243741e-8,4.5706504661150105e-8,4.5741950350895565e-8,4.5764072483502674e-8,4.581446071881169e-8,4.5843340776054556e-8,4.584669529695192e-8,4.586797946999057e-8,4.589538074787891e-8,4.5922782025767255e-8,4.5990237771027546e-8,4.601437100659893e-8,4.6018728396354876e-8,4.616067874725044e-8,4.6194364721902166e-8,4.634016968681261e-8,4.634327013721588e-8,4.6389357913480674e-8,4.639170420027234e-8,4.641740734674173e-8,4.641826751859223e-8,4.646292068236172e-8,4.6486561223420974e-8,4.649133759296114e-8,4.649980098460249e-8,4.650399078244475e-8,4.653633602178695e-8,4.66581753430397e-8,4.675009950769875e-8,4.68156279459516e-8,4.682191264271499e-8,4.71198910652561e-8,4.720025138787053e-8,4.722254111239133e-8,4.733516287839112e-8,4.734010683984498e-8,4.7360636849272025e-8,4.758839425997696e-8,4.774685241437101e-8,4.7923661883314135e-8,4.7970922802974755e-8,4.80382947522782e-8,4.815208966167383e-8,4.817538493767676e-8,4.821954540693411e-8,4.823580182256206e-8,4.8262784120666174e-8,4.843247093327747e-8,4.845794490415837e-8,4.848685741872635e-8,4.8550707028385886e-8,4.855246256368699e-8,4.867983659788415e-8,4.898644600398031e-8,4.90410809678433e-8,4.91868021367969e-8,4.9327998324080863e-8,4.939679480465068e-8,5.04263957264062e-8,5.104455850005237e-8,5.1147795118885514e-8,5.20366188331413e-8,3.008344652197786e-7]},"completed":true,"percentSlower":0},{"name":"@mootable/LinkedHashMap","ops":18506035,"margin":0.71,"options":{"delay":0.5,"initCount":1,"minTime":0.05,"maxTime":5,"minSamples":10},"samples":94,"promise":false,"details":{"min":4.997705328406246e-8,"max":5.8818340547815654e-8,"mean":5.403642709101279e-8,"median":5.408612719648754e-8,"standardDeviation":1.889983486486069e-9,"marginOfError":3.8207634811584016e-10,"relativeMarginOfError":0.7070718192975903,"standardErrorOfMean":1.9493691230400007e-10,"sampleVariance":3.572037579190037e-18,"sampleResults":[4.997705328406246e-8,5.0089402789367025e-8,5.017592482218779e-8,5.024327492351095e-8,5.0393074263917034e-8,5.053899948345055e-8,5.0548138435252514e-8,5.0586930083841405e-8,5.10376123094831e-8,5.134014781261176e-8,5.167095320375516e-8,5.1713876114462437e-8,5.2005283190139106e-8,5.202994000079469e-8,5.2447947709301863e-8,5.250677999668579e-8,5.263552358126239e-8,5.267991511860304e-8,5.2691659964805275e-8,5.2697562881051523e-8,5.272738109429014e-8,5.2876496954558866e-8,5.2958536973020226e-8,5.299072197719236e-8,5.3029476313460163e-8,5.3104064846823225e-8,5.3175686414749476e-8,5.318251008754621e-8,5.319922914928279e-8,5.319942333867577e-8,5.324386680150015e-8,5.329727857735396e-8,5.3619223586442566e-8,5.363582616035099e-8,5.3641077601621177e-8,5.366120697205921e-8,5.375779790996146e-8,5.378779751261573e-8,5.379783049231136e-8,5.3864476534877534e-8,5.386607462152819e-8,5.396816735982281e-8,5.397931815472642e-8,5.398329161203163e-8,5.3986967060038944e-8,5.404211821287235e-8,5.405292645130528e-8,5.41193279416698e-8,5.4189514046171575e-8,5.421643421941431e-8,5.426838107970974e-8,5.427464536893551e-8,5.4346266936861765e-8,5.435322048714587e-8,5.4395339134581e-8,5.4404676759248225e-8,5.4440437874995034e-8,5.445851710573369e-8,5.4490266826671386e-8,5.4537290896809315e-8,5.4600293429364756e-8,5.461676004291334e-8,5.4624264072227636e-8,5.4634839273652004e-8,5.4653447410958145e-8,5.468033955365125e-8,5.472437444173649e-8,5.480490324631462e-8,5.49166567330234e-8,5.497754996622561e-8,5.5027665246490496e-8,5.50400325823499e-8,5.5071323558628364e-8,5.51756268128899e-8,5.5203218022868094e-8,5.5244367624269876e-8,5.5714924305638335e-8,5.571691103429094e-8,5.582101561568721e-8,5.5921842094806696e-8,5.626137402153614e-8,5.646332498907299e-8,5.658676853495983e-8,5.6717882944194324e-8,5.675311920264814e-8,5.6825902968172606e-8,5.6868439084148794e-8,5.689166368657369e-8,5.707046926530775e-8,5.712782793585851e-8,5.725890563211263e-8,5.7349779119631075e-8,5.81269021376693e-8,5.8818340547815654e-8]},"completed":true,"percentSlower":8.74},{"name":"map","ops":12223746,"margin":0.89,"options":{"delay":0.5,"initCount":1,"minTime":0.05,"maxTime":5,"minSamples":10},"samples":84,"promise":false,"details":{"min":7.234024267130853e-8,"max":9.493030158817712e-8,"mean":8.180798059597099e-8,"median":8.18874563382775e-8,"standardDeviation":3.3907793754900937e-9,"marginOfError":7.251301471436608e-10,"relativeMarginOfError":0.8863806952097937,"standardErrorOfMean":3.6996436078758205e-10,"sampleVariance":1.149738477324899e-17,"sampleResults":[7.234024267130853e-8,7.586742999052046e-8,7.598672606670574e-8,7.602405419377019e-8,7.62936889810191e-8,7.638155759627386e-8,7.670596595828742e-8,7.671828039195817e-8,7.681936136833882e-8,7.710477402372837e-8,7.712799186221175e-8,7.747112842543289e-8,7.839804610985757e-8,7.883841538893728e-8,7.884803604024255e-8,7.910753707478324e-8,7.933933063356478e-8,7.940218555542585e-8,7.94047510624406e-8,7.950788444443304e-8,7.979663225894176e-8,7.980548325814259e-8,7.990361390145631e-8,8.010410827465805e-8,8.018864173079365e-8,8.022391745224629e-8,8.027009657851157e-8,8.091981122999385e-8,8.098792544123514e-8,8.102474046689663e-8,8.102653632180694e-8,8.115865993306591e-8,8.128347184933291e-8,8.1456002196074e-8,8.146036355799906e-8,8.146921455719991e-8,8.161647465984585e-8,8.16960053773027e-8,8.178669605027368e-8,8.179452084666862e-8,8.185211647914947e-8,8.186609849237981e-8,8.190881418417519e-8,8.193434097897182e-8,8.226221277545529e-8,8.243410174544269e-8,8.254608612663599e-8,8.259175215149832e-8,8.264088161083054e-8,8.267936421605161e-8,8.270514756154972e-8,8.2775699004455e-8,8.290051092072199e-8,8.297811750791779e-8,8.313794859493594e-8,8.316642572279952e-8,8.319362009715575e-8,8.320670418293091e-8,8.323377028193639e-8,8.329123763906652e-8,8.334960292365179e-8,8.348544652008215e-8,8.372391039710201e-8,8.379702734702204e-8,8.388835939674668e-8,8.43486113551906e-8,8.436131061491354e-8,8.437105954156954e-8,8.480976124108967e-8,8.486440654050357e-8,8.498434399344257e-8,8.499627360106109e-8,8.501808041068636e-8,8.503821964075206e-8,8.516469913657861e-8,8.538584584124898e-8,8.580209935439016e-8,8.58408385103127e-8,8.628877603508589e-8,8.671182814181609e-8,8.68874370969749e-8,8.704406130022461e-8,8.781281547719073e-8,9.493030158817712e-8]},"completed":true,"percentSlower":39.72}],"testFile":"/**\r\n * HashMap - HashMap Implementation for JavaScript\r\n * @author Jack Moxley <https://github.com/jackmoxley>\r\n * @version 1.0.4\r\n * Homepage: https://github.com/mootable/hashmap\r\n */\r\nconst Benchmark = require(\"../util/Benchmark.js\");\r\nconst singleSuite = require(\"../handlers/single.js\");\r\n\r\n// test(implementation)\r\n\r\nconst benchmark = new Benchmark('create').withTest( ({Impl, constructorParameters}) => {\r\n if(constructorParameters){\r\n return function() {\r\n const hashmap = new Impl(constructorParameters);\r\n if (!hashmap) {\r\n throw \"where is the hashmap?\";\r\n }\r\n };\r\n }\r\n return function() {\r\n const hashmap = new Impl();\r\n if (!hashmap) {\r\n throw \"where is the hashmap?\";\r\n }\r\n };\r\n});\r\n\r\nmodule.exports = singleSuite(benchmark);"}
{"benchmark":"create","type":"single","results":[{"name":"@mootable/HashMap","ops":20278078,"margin":10.77,"options":{"delay":0.5,"initCount":1,"minTime":0.05,"maxTime":5,"minSamples":10},"samples":94,"promise":false,"details":{"min":4.3706797946999055e-8,"max":3.008344652197786e-7,"mean":4.931433908335877e-8,"median":4.634171991201424e-8,"standardDeviation":2.6273461803631347e-8,"marginOfError":5.3114053165387126e-9,"relativeMarginOfError":10.770508974196225,"standardErrorOfMean":2.709900671703425e-9,"sampleVariance":6.902947951468754e-16,"sampleResults":[4.3706797946999055e-8,4.417077616005028e-8,4.444680004189798e-8,4.447302817639049e-8,4.454911490520582e-8,4.467841206661779e-8,4.46863280946921e-8,4.4703048077930236e-8,4.470857861108202e-8,4.482103278516812e-8,4.485098752553945e-8,4.485924374148947e-8,4.4861841416151675e-8,4.4887818162773646e-8,4.493583324604588e-8,4.498024510317377e-8,4.514180370797109e-8,4.5277301770189585e-8,4.5317859013302613e-8,4.5321775563161116e-8,4.541992248873992e-8,4.543894417094375e-8,4.5469278307321676e-8,4.5536231276840896e-8,4.5551398345029855e-8,4.55514821409867e-8,4.555178151159082e-8,4.558458154394051e-8,4.558826856604169e-8,4.561583743584372e-8,4.562572535875144e-8,4.564575259243741e-8,4.5706504661150105e-8,4.5741950350895565e-8,4.5764072483502674e-8,4.581446071881169e-8,4.5843340776054556e-8,4.584669529695192e-8,4.586797946999057e-8,4.589538074787891e-8,4.5922782025767255e-8,4.5990237771027546e-8,4.601437100659893e-8,4.6018728396354876e-8,4.616067874725044e-8,4.6194364721902166e-8,4.634016968681261e-8,4.634327013721588e-8,4.6389357913480674e-8,4.639170420027234e-8,4.641740734674173e-8,4.641826751859223e-8,4.646292068236172e-8,4.6486561223420974e-8,4.649133759296114e-8,4.649980098460249e-8,4.650399078244475e-8,4.653633602178695e-8,4.66581753430397e-8,4.675009950769875e-8,4.68156279459516e-8,4.682191264271499e-8,4.71198910652561e-8,4.720025138787053e-8,4.722254111239133e-8,4.733516287839112e-8,4.734010683984498e-8,4.7360636849272025e-8,4.758839425997696e-8,4.774685241437101e-8,4.7923661883314135e-8,4.7970922802974755e-8,4.80382947522782e-8,4.815208966167383e-8,4.817538493767676e-8,4.821954540693411e-8,4.823580182256206e-8,4.8262784120666174e-8,4.843247093327747e-8,4.845794490415837e-8,4.848685741872635e-8,4.8550707028385886e-8,4.855246256368699e-8,4.867983659788415e-8,4.898644600398031e-8,4.90410809678433e-8,4.91868021367969e-8,4.9327998324080863e-8,4.939679480465068e-8,5.04263957264062e-8,5.104455850005237e-8,5.1147795118885514e-8,5.20366188331413e-8,3.008344652197786e-7]},"completed":true,"percentSlower":0},{"name":"@mootable/LinkedHashMap","ops":18506035,"margin":0.71,"options":{"delay":0.5,"initCount":1,"minTime":0.05,"maxTime":5,"minSamples":10},"samples":94,"promise":false,"details":{"min":4.997705328406246e-8,"max":5.8818340547815654e-8,"mean":5.403642709101279e-8,"median":5.408612719648754e-8,"standardDeviation":1.889983486486069e-9,"marginOfError":3.8207634811584016e-10,"relativeMarginOfError":0.7070718192975903,"standardErrorOfMean":1.9493691230400007e-10,"sampleVariance":3.572037579190037e-18,"sampleResults":[4.997705328406246e-8,5.0089402789367025e-8,5.017592482218779e-8,5.024327492351095e-8,5.0393074263917034e-8,5.053899948345055e-8,5.0548138435252514e-8,5.0586930083841405e-8,5.10376123094831e-8,5.134014781261176e-8,5.167095320375516e-8,5.1713876114462437e-8,5.2005283190139106e-8,5.202994000079469e-8,5.2447947709301863e-8,5.250677999668579e-8,5.263552358126239e-8,5.267991511860304e-8,5.2691659964805275e-8,5.2697562881051523e-8,5.272738109429014e-8,5.2876496954558866e-8,5.2958536973020226e-8,5.299072197719236e-8,5.3029476313460163e-8,5.3104064846823225e-8,5.3175686414749476e-8,5.318251008754621e-8,5.319922914928279e-8,5.319942333867577e-8,5.324386680150015e-8,5.329727857735396e-8,5.3619223586442566e-8,5.363582616035099e-8,5.3641077601621177e-8,5.366120697205921e-8,5.375779790996146e-8,5.378779751261573e-8,5.379783049231136e-8,5.3864476534877534e-8,5.386607462152819e-8,5.396816735982281e-8,5.397931815472642e-8,5.398329161203163e-8,5.3986967060038944e-8,5.404211821287235e-8,5.405292645130528e-8,5.41193279416698e-8,5.4189514046171575e-8,5.421643421941431e-8,5.426838107970974e-8,5.427464536893551e-8,5.4346266936861765e-8,5.435322048714587e-8,5.4395339134581e-8,5.4404676759248225e-8,5.4440437874995034e-8,5.445851710573369e-8,5.4490266826671386e-8,5.4537290896809315e-8,5.4600293429364756e-8,5.461676004291334e-8,5.4624264072227636e-8,5.4634839273652004e-8,5.4653447410958145e-8,5.468033955365125e-8,5.472437444173649e-8,5.480490324631462e-8,5.49166567330234e-8,5.497754996622561e-8,5.5027665246490496e-8,5.50400325823499e-8,5.5071323558628364e-8,5.51756268128899e-8,5.5203218022868094e-8,5.5244367624269876e-8,5.5714924305638335e-8,5.571691103429094e-8,5.582101561568721e-8,5.5921842094806696e-8,5.626137402153614e-8,5.646332498907299e-8,5.658676853495983e-8,5.6717882944194324e-8,5.675311920264814e-8,5.6825902968172606e-8,5.6868439084148794e-8,5.689166368657369e-8,5.707046926530775e-8,5.712782793585851e-8,5.725890563211263e-8,5.7349779119631075e-8,5.81269021376693e-8,5.8818340547815654e-8]},"completed":true,"percentSlower":8.74},{"name":"map","ops":12223746,"margin":0.89,"options":{"delay":0.5,"initCount":1,"minTime":0.05,"maxTime":5,"minSamples":10},"samples":84,"promise":false,"details":{"min":7.234024267130853e-8,"max":9.493030158817712e-8,"mean":8.180798059597099e-8,"median":8.18874563382775e-8,"standardDeviation":3.3907793754900937e-9,"marginOfError":7.251301471436608e-10,"relativeMarginOfError":0.8863806952097937,"standardErrorOfMean":3.6996436078758205e-10,"sampleVariance":1.149738477324899e-17,"sampleResults":[7.234024267130853e-8,7.586742999052046e-8,7.598672606670574e-8,7.602405419377019e-8,7.62936889810191e-8,7.638155759627386e-8,7.670596595828742e-8,7.671828039195817e-8,7.681936136833882e-8,7.710477402372837e-8,7.712799186221175e-8,7.747112842543289e-8,7.839804610985757e-8,7.883841538893728e-8,7.884803604024255e-8,7.910753707478324e-8,7.933933063356478e-8,7.940218555542585e-8,7.94047510624406e-8,7.950788444443304e-8,7.979663225894176e-8,7.980548325814259e-8,7.990361390145631e-8,8.010410827465805e-8,8.018864173079365e-8,8.022391745224629e-8,8.027009657851157e-8,8.091981122999385e-8,8.098792544123514e-8,8.102474046689663e-8,8.102653632180694e-8,8.115865993306591e-8,8.128347184933291e-8,8.1456002196074e-8,8.146036355799906e-8,8.146921455719991e-8,8.161647465984585e-8,8.16960053773027e-8,8.178669605027368e-8,8.179452084666862e-8,8.185211647914947e-8,8.186609849237981e-8,8.190881418417519e-8,8.193434097897182e-8,8.226221277545529e-8,8.243410174544269e-8,8.254608612663599e-8,8.259175215149832e-8,8.264088161083054e-8,8.267936421605161e-8,8.270514756154972e-8,8.2775699004455e-8,8.290051092072199e-8,8.297811750791779e-8,8.313794859493594e-8,8.316642572279952e-8,8.319362009715575e-8,8.320670418293091e-8,8.323377028193639e-8,8.329123763906652e-8,8.334960292365179e-8,8.348544652008215e-8,8.372391039710201e-8,8.379702734702204e-8,8.388835939674668e-8,8.43486113551906e-8,8.436131061491354e-8,8.437105954156954e-8,8.480976124108967e-8,8.486440654050357e-8,8.498434399344257e-8,8.499627360106109e-8,8.501808041068636e-8,8.503821964075206e-8,8.516469913657861e-8,8.538584584124898e-8,8.580209935439016e-8,8.58408385103127e-8,8.628877603508589e-8,8.671182814181609e-8,8.68874370969749e-8,8.704406130022461e-8,8.781281547719073e-8,9.493030158817712e-8]},"completed":true,"percentSlower":39.72}],"testFile":"/**\r\n * HashMap - HashMap Implementation for JavaScript\r\n * @author Jack Moxley <https://github.com/jackmoxley>\r\n * @version 1.0.5\r\n * Homepage: https://github.com/mootable/hashmap\r\n */\r\nconst Benchmark = require(\"../util/Benchmark.js\");\r\nconst singleSuite = require(\"../handlers/single.js\");\r\n\r\n// test(implementation)\r\n\r\nconst benchmark = new Benchmark('create').withTest( ({Impl, constructorParameters}) => {\r\n if(constructorParameters){\r\n return function() {\r\n const hashmap = new Impl(constructorParameters);\r\n if (!hashmap) {\r\n throw \"where is the hashmap?\";\r\n }\r\n };\r\n }\r\n return function() {\r\n const hashmap = new Impl();\r\n if (!hashmap) {\r\n throw \"where is the hashmap?\";\r\n }\r\n };\r\n});\r\n\r\nmodule.exports = singleSuite(benchmark);"}
2 changes: 1 addition & 1 deletion benchmark_results/benchmarks.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mootable/hashmap",
"version": "1.0.4",
"version": "1.0.5",
"description": "HashMap Implementation for JavaScript",
"homepage": "https://github.com/mootable/hashmap",
"main": "./hashmap.js",
Expand Down
Loading

0 comments on commit 6102340

Please sign in to comment.