Skip to content

Commit 9f01fd4

Browse files
committed
Update object dependency
1 parent 767e233 commit 9f01fd4

File tree

5 files changed

+48
-48
lines changed

5 files changed

+48
-48
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ features = ["std", "derive"]
1515
atty = "0.2"
1616

1717
[dependencies.object]
18-
version = "0.28.3"
19-
features = ["read"]
18+
version = "0.30.0"
19+
features = ["read"]

README.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -33,56 +33,56 @@ Only `all+ASCII` performance comparison brings a meaningful result, because the
3333

3434
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
3535
|:---|---:|---:|---:|---:|
36-
| `target/release/strings target/debug/strings` | 818.1 ± 70.1 | 751.8 | 952.2 | 1.09 ± 0.11 |
37-
| `strings target/debug/strings` | 748.9 ± 34.2 | 723.7 | 839.7 | 1.00 |
36+
| `target/release/strings target/debug/strings` | 864.2 ± 57.0 | 797.0 | 986.9 | 1.04 ± 0.08 |
37+
| `strings target/debug/strings` | 831.4 ± 26.2 | 804.1 | 888.2 | 1.00 |
3838

3939
#### Rust variant memory usage and context switches
4040

41-
Maximum resident set size (kbytes): 2468
42-
Voluntary context switches: 2903
43-
Involuntary context switches: 3
41+
Maximum resident set size (kbytes): 2448
42+
Voluntary context switches: 2924
43+
Involuntary context switches: 6
4444

4545
#### C variant memory usage and context switches
4646

47-
Maximum resident set size (kbytes): 2532
48-
Voluntary context switches: 5305
47+
Maximum resident set size (kbytes): 2572
48+
Voluntary context switches: 5347
4949
Involuntary context switches: 4
5050

5151
### ASCII chars search, only data section(s) scan (in-memory byte array mode)
5252

5353
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
5454
|:---|---:|---:|---:|---:|
55-
| `target/release/strings -d target/debug/strings` | 167.4 ± 19.8 | 151.9 | 236.1 | 3.65 ± 0.46 |
56-
| `strings -d target/debug/strings` | 45.8 ± 2.0 | 41.8 | 56.5 | 1.00 |
55+
| `target/release/strings -d target/debug/strings` | 161.5 ± 4.0 | 154.4 | 168.5 | 3.42 ± 0.21 |
56+
| `strings -d target/debug/strings` | 47.3 ± 2.6 | 42.6 | 55.0 | 1.00 |
5757

5858
#### Rust variant memory usage and context switches
5959

60-
Maximum resident set size (kbytes): 23456
61-
Voluntary context switches: 597
62-
Involuntary context switches: 0
60+
Maximum resident set size (kbytes): 23592
61+
Voluntary context switches: 599
62+
Involuntary context switches: 1
6363

6464
#### C variant memory usage and context switches
6565

66-
Maximum resident set size (kbytes): 4844
66+
Maximum resident set size (kbytes): 4832
6767
Voluntary context switches: 113
6868
Involuntary context switches: 0
6969

7070
### Unicode chars search, complete file scan (file stream mode)
7171

7272
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
7373
|:---|---:|---:|---:|---:|
74-
| `target/release/strings -u escape target/release/strings` | 243.1 ± 13.7 | 225.3 | 264.7 | 1.23 ± 0.13 |
75-
| `strings -Ue target/release/strings` | 197.2 ± 18.1 | 169.6 | 233.2 | 1.00 |
74+
| `target/release/strings -u escape target/release/strings` | 260.3 ± 18.0 | 233.0 | 302.5 | 1.40 ± 0.12 |
75+
| `strings -Ue target/release/strings` | 185.3 ± 9.8 | 175.8 | 208.7 | 1.00 |
7676

7777
#### Rust variant memory usage and context switches
7878

79-
Maximum resident set size (kbytes): 2472
80-
Voluntary context switches: 2903
81-
Involuntary context switches: 4
79+
Maximum resident set size (kbytes): 2460
80+
Voluntary context switches: 830
81+
Involuntary context switches: 1
8282

8383
#### C variant memory usage and context switches
8484

85-
Average total size (kbytes): 0
86-
Minor (reclaiming a frame) page faults: 2187
87-
Voluntary context switches: 789
85+
Maximum resident set size (kbytes): 7784
86+
Voluntary context switches: 1196
87+
Involuntary context switches: 0
8888

benchmarks.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,56 @@
66

77
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
88
|:---|---:|---:|---:|---:|
9-
| `target/release/strings target/debug/strings` | 818.1 ± 70.1 | 751.8 | 952.2 | 1.09 ± 0.11 |
10-
| `strings target/debug/strings` | 748.9 ± 34.2 | 723.7 | 839.7 | 1.00 |
9+
| `target/release/strings target/debug/strings` | 864.2 ± 57.0 | 797.0 | 986.9 | 1.04 ± 0.08 |
10+
| `strings target/debug/strings` | 831.4 ± 26.2 | 804.1 | 888.2 | 1.00 |
1111

1212
#### Rust variant memory usage and context switches
1313

14-
Maximum resident set size (kbytes): 2468
15-
Voluntary context switches: 2903
16-
Involuntary context switches: 3
14+
Maximum resident set size (kbytes): 2448
15+
Voluntary context switches: 2924
16+
Involuntary context switches: 6
1717

1818
#### C variant memory usage and context switches
1919

20-
Maximum resident set size (kbytes): 2532
21-
Voluntary context switches: 5305
20+
Maximum resident set size (kbytes): 2572
21+
Voluntary context switches: 5347
2222
Involuntary context switches: 4
2323

2424
### ASCII chars search, only data section(s) scan (in-memory byte array mode)
2525

2626
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
2727
|:---|---:|---:|---:|---:|
28-
| `target/release/strings -d target/debug/strings` | 167.4 ± 19.8 | 151.9 | 236.1 | 3.65 ± 0.46 |
29-
| `strings -d target/debug/strings` | 45.8 ± 2.0 | 41.8 | 56.5 | 1.00 |
28+
| `target/release/strings -d target/debug/strings` | 161.5 ± 4.0 | 154.4 | 168.5 | 3.42 ± 0.21 |
29+
| `strings -d target/debug/strings` | 47.3 ± 2.6 | 42.6 | 55.0 | 1.00 |
3030

3131
#### Rust variant memory usage and context switches
3232

33-
Maximum resident set size (kbytes): 23456
34-
Voluntary context switches: 597
35-
Involuntary context switches: 0
33+
Maximum resident set size (kbytes): 23592
34+
Voluntary context switches: 599
35+
Involuntary context switches: 1
3636

3737
#### C variant memory usage and context switches
3838

39-
Maximum resident set size (kbytes): 4844
39+
Maximum resident set size (kbytes): 4832
4040
Voluntary context switches: 113
4141
Involuntary context switches: 0
4242

4343
### Unicode chars search, complete file scan (file stream mode)
4444

4545
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
4646
|:---|---:|---:|---:|---:|
47-
| `target/release/strings -u escape target/release/strings` | 243.1 ± 13.7 | 225.3 | 264.7 | 1.23 ± 0.13 |
48-
| `strings -Ue target/release/strings` | 197.2 ± 18.1 | 169.6 | 233.2 | 1.00 |
47+
| `target/release/strings -u escape target/release/strings` | 260.3 ± 18.0 | 233.0 | 302.5 | 1.40 ± 0.12 |
48+
| `strings -Ue target/release/strings` | 185.3 ± 9.8 | 175.8 | 208.7 | 1.00 |
4949

5050
#### Rust variant memory usage and context switches
5151

52-
Maximum resident set size (kbytes): 2472
53-
Voluntary context switches: 2903
54-
Involuntary context switches: 4
52+
Maximum resident set size (kbytes): 2460
53+
Voluntary context switches: 830
54+
Involuntary context switches: 1
5555

5656
#### C variant memory usage and context switches
5757

58-
Average total size (kbytes): 0
59-
Minor (reclaiming a frame) page faults: 2187
60-
Voluntary context switches: 789
58+
Maximum resident set size (kbytes): 7784
59+
Voluntary context switches: 1196
60+
Involuntary context switches: 0
6161

run-bench.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ TIME_OUTPUT_GDB_FILE_MODE=$(${TIME_RUN_COMMAND} strings target/debug/strings 2>&
2727
TIME_OUTPUT_RUST_DATA_MODE=$(${TIME_RUN_COMMAND} target/release/strings -d target/debug/strings 2>&1 >/dev/null | ${EXTRACT_STATS_COMMAND})
2828
TIME_OUTPUT_GDB_DATA_MODE=$(${TIME_RUN_COMMAND} strings -d target/debug/strings 2>&1 >/dev/null | ${EXTRACT_STATS_COMMAND})
2929

30-
TIME_OUTPUT_RUST_UNICODE_FILE_MODE=$(${TIME_RUN_COMMAND} target/release/strings -u escape target/debug/strings 2>&1 >/dev/null | ${EXTRACT_STATS_COMMAND})
31-
TIME_OUTPUT_GDB_UNICODE_FILE_MODE=$(${TIME_RUN_COMMAND} strings -Ue target/debug/strings 2>&1 >/dev/null | ${EXTRACT_STATS_COMMAND})
30+
TIME_OUTPUT_RUST_UNICODE_FILE_MODE=$(${TIME_RUN_COMMAND} target/release/strings -u escape target/release/strings 2>&1 >/dev/null | ${EXTRACT_STATS_COMMAND})
31+
TIME_OUTPUT_GDB_UNICODE_FILE_MODE=$(${TIME_RUN_COMMAND} strings -Ue target/release/strings 2>&1 >/dev/null | ${EXTRACT_STATS_COMMAND})
3232

3333
# Generate README
3434
echo -en '## Performance comparison\n\n' > benchmarks.md

0 commit comments

Comments
 (0)