Skip to content

Improve parse - #40

Open
sirenkovladd wants to merge 3 commits into
evanw:masterfrom
sirenkovladd:improve-parse
Open

sirenkovladd wants to merge 3 commits into
evanw:masterfrom
sirenkovladd:improve-parse

Conversation

@sirenkovladd

Copy link
Copy Markdown

Before

┌─────────┬───────────────────┬─────────────┬────────────────────┬──────────┬─────────┐
│ (index) │     Task Name     │   ops/sec   │ Average Time (ns)  │  Margin  │ Samples │
├─────────┼───────────────────┼─────────────┼────────────────────┼──────────┼─────────┤
│    0    │ 'parse + compile' │  '38 043'   │ 26285.401617436615 │ '±0.25%' │  38044  │
│    1    │    'to binary'    │ '1 682 744' │ 594.2674273496701  │ '±2.04%' │ 1682746 │
│    2    │   'from binary'   │ '8 286 549' │ 120.67748344930484 │ '±0.26%' │ 8286550 │
└─────────┴───────────────────┴─────────────┴────────────────────┴──────────┴─────────┘

After

> node ./kiwi.js

kiwi size: 12
┌─────────┬───────────────────┬─────────────┬────────────────────┬──────────┬─────────┐
│ (index) │     Task Name     │   ops/sec   │ Average Time (ns)  │  Margin  │ Samples │
├─────────┼───────────────────┼─────────────┼────────────────────┼──────────┼─────────┤
│    0    │ 'parse + compile' │  '53 794'   │  18589.140972425   │ '±0.27%' │  53795  │
│    1    │    'to binary'    │ '1 667 012' │ 599.8754268532493  │ '±2.39%' │ 1667013 │
│    2    │   'from binary'   │ '8 159 387' │ 122.55822210983995 │ '±0.81%' │ 8159388 │
└─────────┴───────────────────┴─────────────┴────────────────────┴──────────┴─────────┘

41,4% - faster

@sirenkovladd

Copy link
Copy Markdown
Author

@evanw

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant