{"id":16010985,"url":"https://github.com/nikku/js-sax-parser-tests","last_synced_at":"2026-05-02T15:41:12.594Z","repository":{"id":66099759,"uuid":"107605926","full_name":"nikku/js-sax-parser-tests","owner":"nikku","description":"The { EasySax - sax-js - Saxen } performance shoot out","archived":false,"fork":false,"pushed_at":"2017-11-11T11:31:36.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T12:47:25.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikku.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-10-19T22:39:38.000Z","updated_at":"2022-10-12T21:12:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9ddb4dd-7013-4b64-8968-208402c8e411","html_url":"https://github.com/nikku/js-sax-parser-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fjs-sax-parser-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fjs-sax-parser-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fjs-sax-parser-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fjs-sax-parser-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikku","download_url":"https://codeload.github.com/nikku/js-sax-parser-tests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245063445,"owners_count":20554937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T13:22:39.026Z","updated_at":"2026-05-02T15:41:07.566Z","avatar_url":"https://github.com/nikku.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Benchmarking JS XML parsers\n\nThis small test compares the following SAX-style XML parsers avaliable:\n\n* [sax-js](https://github.com/isaacs/sax-js)\n* [easysax](https://github.com/vflash/easysax)\n* [saxen](https://github.com/nikku/saxen)\n\n## Test Coverage\n\nThe following aspects are tested\n\n* strict mode (parsing XML only)\n* events: `openTag`, `closeTag`, `text`\n* attribute processing on\n* entity decoding on\n* namespace parsing on\n\n\n## Results\n\n### Size\n\nComparing parsers by bundled size:\n\n| parser | default | min+gzipped |\n| :--- | ---:|---:|\n| sax-js | 40KB | 6.7 KB |\n| easysax | 20KB | 2.1KB |\n| saxen | 21KB | 2.6KB |\n\n### XML Parse Time\n\nParsing [`./complex.bpmn`](./complex.bpmn).\n\n| parser | average time |\n| :--- | ---:|\n| sax-js | 30.3ms |\n| easysax | 5.2ms |\n| saxen | 5.1ms |\n\nCf. [tests](./index.js).\n\n\n## How to Run\n\n```\nnpm install\n\n# test minify\nnpm run minify\n\n# test performance (in browser)\nnpm run perf\n\n# open index.html in a web browser\n```\n\n :rocket:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikku%2Fjs-sax-parser-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikku%2Fjs-sax-parser-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikku%2Fjs-sax-parser-tests/lists"}