{"id":22344024,"url":"https://github.com/lisanjs/benchmark","last_synced_at":"2026-03-19T22:28:47.514Z","repository":{"id":41688870,"uuid":"249034664","full_name":"lisanjs/benchmark","owner":"lisanjs","description":"A benchmark test with Lisan","archived":false,"fork":false,"pushed_at":"2022-12-06T22:03:32.000Z","size":45,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T11:28:49.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lisanjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-21T18:16:10.000Z","updated_at":"2020-08-20T21:10:17.000Z","dependencies_parsed_at":"2023-01-23T18:45:55.013Z","dependency_job_id":null,"html_url":"https://github.com/lisanjs/benchmark","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/lisanjs%2Fbenchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisanjs%2Fbenchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisanjs%2Fbenchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisanjs%2Fbenchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lisanjs","download_url":"https://codeload.github.com/lisanjs/benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632424,"owners_count":20647193,"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-12-04T09:07:41.758Z","updated_at":"2026-01-07T03:07:17.377Z","avatar_url":"https://github.com/lisanjs.png","language":"HTML","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Lisan.js\" src=\"https://raw.githubusercontent.com/lisanjs/lisan/master/website/static/img/logo/banners/5_big.png\" width=\"480\"\u003e\n  \u003cbr\u003e\n  \u003cstrong\u003ei18n\u003c/strong\u003e, Reimagined!\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  A blazing fast and super small i18n library for Javascript\n\u003c/p\u003e\n\n\u003chr\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://lisanjs.com\"\u003e\u003cstrong\u003eWebsite\u003c/strong\u003e\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n\u003ca href=\"https://lisanjs.com/docs/what-is-lisan#installation\"\u003eInstallation\u003c/a\u003e ·\n\u003ca href=\"https://lisanjs.com/docs/docs/full-api-reference\"\u003eAPI\u003c/a\u003e ·\n\u003ca href=\"https://lisanjs.com/docs/docs/pluralization\"\u003eGuides \u0026 Tips\u003c/a\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\n# Lisan Benchmark test\n\n[Lisan](https://lisanjs.com) is **super fast** because it doesn't interpolate strings\nby finding and replacing placeholders in the translation templates.\nInstead, it relies on template literals which are pure string\nconcatenation functions.\n\nIn average usage, Lisan is least 25x times faster than using regex replaces.\nHowever, Lisan is at least 50x times faster when compared to the other i18n\nlibraries and taking their complexities into account.\n\n## Benchmark.js\n\n### With interpolation\n\n\u003ca href=\"https://lisanjs.com/img/with-interpolation.png\" target=\"_blank\"\u003e\u003cimg src=\"https://lisanjs.com/img/with-interpolation.png\"\u003e\u003c/a\u003e\n\n\u003cp align=\"center\" style=\"font-size: 10px\"\u003eon MacBook Pro 2017, 2,8 GHz Quad-Core Intel Core i7 16 GB 2133 MHz LPDDR3\u003cp\u003e\n\n\u003e As you can predict, Lisan gets **exponentially** faster if\n\u003e number of placeholders and localization functions increase.\n\n### When there is no interpolation\n\nLisan is faster even on entries not containing placeholders.\nBecause it does not perform placeholder search.\n\n\u003ca href=\"https://lisanjs.com/img/no-interpolation.png\" target=\"_blank\"\u003e\u003cimg src=\"https://lisanjs.com/img/no-interpolation.png\"\u003e\u003c/a\u003e\n\n\u003cp align=\"center\" style=\"font-size: 10px\"\u003eon MacBook Pro 2017, 2,8 GHz Quad-Core Intel Core i7 16 GB 2133 MHz LPDDR3\u003cp\u003e\n\n## Setup\n\nClone the repository, and run the commands below:\n\n```bash\nnpm install\nnpm start\n```\n\nAfter starting the server, you can visit:\n\n- http://localhost:8080/tests/with-interpolation.html\n- http://localhost:8080/tests/no-interpolation.html\n- http://localhost:8080/tests/time-to-interact.html\n\nPlease check the **developer console** for the results!\n\n## License\n\nThis repository is [MIT licensed](./LICENCE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisanjs%2Fbenchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flisanjs%2Fbenchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisanjs%2Fbenchmark/lists"}