Skip to content

Commit

Permalink
moar faces
Browse files Browse the repository at this point in the history
  • Loading branch information
carvilsi committed Mar 13, 2024
1 parent e8efec6 commit 286ea74
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions benchmark/report.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
┌─────────┬──────────────────────────────────┬─────────────┬────────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼──────────────────────────────────┼─────────────┼────────────────────┼──────────┼─────────┤
│ 0 │ 'random face' │ '2,585,877' │ 386.71588588650104 │ '±2.92%' │ 258588
│ 1 │ 'print all the faces' │ '6,836' │ 146278.00093233932 │ '±0.43%' │ 684
│ 2 │ 'get one by name; more than one' │ '11,447' │ 87358.24560494404 │ '±0.91%' │ 1145
│ 3 │ 'get one by name; just one' │ '11,545' │ 86611.06453313457 │ '±1.16%' │ 1155
│ 4 │ 'get array of faces by name' │ '11,596' │ 86233.59177646966 │ '±0.41%' │ 1160
│ 0 │ 'random face' │ '2,805,683' │ 356.4194135787683 │ '±4.45%' │ 280569
│ 1 │ 'print all the faces' │ '6,628' │ 150874.76435649808 │ '±0.91%' │ 663
│ 2 │ 'get one by name; more than one' │ '11,411' │ 87631.14901849977 │ '±0.95%' │ 1142
│ 3 │ 'get one by name; just one' │ '11,834' │ 84499.9554793577 │ '±0.85%' │ 1184
│ 4 │ 'get array of faces by name' │ '11,279' │ 88656.80955086193 │ '±0.56%' │ 1128
└─────────┴──────────────────────────────────┴─────────────┴────────────────────┴──────────┴─────────┘
7 changes: 6 additions & 1 deletion src/faces.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ const canonical = {
'>^_^<', '<^!^>', '^/^', '(*^_^*)', '§^.^§', '(^<^)', ' (^.^)', '(^ム^)',
'(^·^)', '(^.^)', '(^_^.)', '(^_^)', '(^^)', ' (^J^)', '(*^.^*)', '^_^',
'(#^.^#)', '(^—^)'
]
],
waving: [
'(^^)/~~~', '(^_^)/~', '(;_;)/~~~', '(^.^)/~~~', '(-_-)/~~~', '($··)/~~~',
'(@^^)/~~~', '(T_T)/~~~', '(ToT)/~~~'
],
alien_baltan: [ '(V)o¥o(V)' ]
}
};

Expand Down
2 changes: 1 addition & 1 deletion tests/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import test from 'ava';
import facetxt from '../src/index.js';

const TOTAL_FACES = 342;
const TOTAL_FACES = 352;
const WHOLE_EMBARRASSED_FACES = [
':$', '://)',
'://3', '(^^ゞ',
Expand Down

0 comments on commit 286ea74

Please sign in to comment.