functionalscript 0.0.572 → 0.0.574

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.572",
3
+ "version": "0.0.574",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "scripts": {
6
6
  "tsc": "tsc",
@@ -4,22 +4,22 @@ Bun has a `bigint` size limitation. It's `1_048_575` bits (`1024 ** 2`) or `131_
4
4
 
5
5
  ## Benchmarks
6
6
 
7
- ### bitLen vs toString(2).length (2024/11/25)
8
-
9
- |Framework|bitLen |toString(2).length|
10
- |---------|------------------|------------------|
11
- |Bun |1.781681 |2.079615 |
12
- |Deno 1 |0.710344 |1.917003 |
13
- |Deno 2 |0.986602 |2.286932 |
14
- |Node 16 |1.521150 |2.330505 |
15
- |Node 18 |1.393006 |2.312573 |
16
- |Node 20 |1.055315 |2.320039 |
17
- |Node 22 |0.983075 |2.336697 |
18
- |Node 23 |0.699960 |1.872965 |
19
-
20
- `bitLen` wins.
21
-
22
- ### Minus vs Not
7
+ ### log2 versus toString (2024/11/25)
8
+
9
+ |Framework|log2(x) |x.toString(2).length|
10
+ |---------|------------------|--------------------|
11
+ |Bun |1.781681 |2.079615 |
12
+ |Deno 1 |0.710344 |1.917003 |
13
+ |Deno 2 |0.986602 |2.286932 |
14
+ |Node 16 |1.521150 |2.330505 |
15
+ |Node 18 |1.393006 |2.312573 |
16
+ |Node 20 |1.055315 |2.320039 |
17
+ |Node 22 |0.983075 |2.336697 |
18
+ |Node 23 |0.699960 |1.872965 |
19
+
20
+ `log2` wins.
21
+
22
+ ### Minus versus Not
23
23
 
24
24
  |Framework|minus `-` |not `~` |
25
25
  |---------|------------------|------------------|