OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 18 9 462 22 20 24.98 1.18
bin-true no-host 656 525 2,279 789 794 3.47 1.20
configure.cpython no-host 14,517 14,548 28,107 14,672 14,676 1.94 1.01
configure.ocaml no-host 3,708 3,656 4,576 3,730 3,733 1.23 1.01
configure.tcc no-host 46 40 202 48 47 4.39 1.04
configure.util-linux no-host 13,503 14,359 30,741 13,840 13,848 2.28 1.02
configure.yash no-host 1,798 1,717 2,402 1,779 1,776 1.34 0.99
hello-world no-host 1 1 55 3 3 42.45 2.13

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,506 1,110 23,467 3,213 3,130 9.36 1.28
bin-true no-host 106,364 66,378 755,291 128,116 128,152 7.10 1.20
configure.cpython no-host 2,006,144 2,025,722 5,977,109 1,996,603 1,985,548 2.98 1.00
configure.ocaml no-host 373,574 353,843 606,390 376,370 375,588 1.62 1.01
configure.tcc no-host 6,074 4,986 23,423 6,474 6,434 3.86 1.07
configure.util-linux no-host 1,903,276 2,068,322 5,158,625 1,810,117 1,801,906 2.71 0.95
configure.yash no-host 233,569 220,817 364,806 235,175 235,082 1.56 1.01
hello-world no-host 149 77 3,962 344 338 26.59 2.31

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 22.6 9.2 8.7 5.22 2.12
bin-true no-host 3.0 1.4 18.4 8.4 7.5 6.10 2.78
configure.cpython no-host 29.3 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.4 19.8 19.4 19.8 19.6 1.00 1.02
configure.util-linux no-host 30.3 30.3 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.4 26.4 26.4 26.3 26.4 1.00 1.00
hello-world no-host 2.9 1.4 18.1 6.4 5.9 6.29 2.23

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.2 6.4 3,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 789 1 2 2.6 8.4 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 14,672 1 65 14.9 29.2 1,767,675 49,060 28,519 85,427 875,384 806,864 25,736 60 50,000 0
configure.util-linux no-host 13,840 3 63 21.2 30.2 2,698,991 29,940 65,718 108,699 1,288,281 1,302,011 32,241 41 131,436 1
configure.ocaml no-host 3,730 1 2 2.6 22.6 149,553 11,119 5,214 7,508 70,616 71,429 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.8 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,779 1 2 2.5 26.3 139,269 8,031 6,693 5,989 67,845 65,435 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 794 1 2 2.6 7.5 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 14,676 1 64 14.9 29.2 1,767,674 37,983 24,932 85,428 875,384 806,862 25,736 60 50,000 0
configure.util-linux no-host 13,848 3 62 21.2 30.3 2,698,991 29,878 65,656 108,701 1,288,281 1,302,009 32,241 41 131,312 1
configure.ocaml no-host 3,733 1 2 2.6 22.6 149,553 11,057 5,152 7,510 70,616 71,427 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,539 30,539 0 1,520 14,608 14,411 271 0 50,000 0
configure.yash no-host 1,776 1 2 2.5 26.4 139,269 7,969 6,631 5,991 67,845 65,433 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,298 64,348 42,558 4,533 54,439 57,326 277 3 85,116 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 18 8 11 4.3 bash
15 no-host abuild-print-help 9 3 6 3.5 dash
23 no-host abuild-print-help 462 413 52 22.6 osh-cpython
31 no-host abuild-print-help 22 12 10 9.2 osh-native
39 no-host abuild-print-help 20 10 11 8.7 osh-native-souffle
1 no-host bin-true 656 295 396 3.0 bash
9 no-host bin-true 525 272 266 1.4 dash
17 no-host bin-true 2,279 796 1,743 18.4 osh-cpython
25 no-host bin-true 789 300 505 8.4 osh-native
33 no-host bin-true 794 290 520 7.5 osh-native-souffle
2 no-host configure.cpython 14,517 6,577 8,348 29.3 bash
10 no-host configure.cpython 14,548 6,551 8,426 29.2 dash
18 no-host configure.cpython 28,107 14,174 15,793 29.2 osh-cpython
26 no-host configure.cpython 14,672 6,434 8,525 29.2 osh-native
34 no-host configure.cpython 14,676 6,487 8,469 29.2 osh-native-souffle
4 no-host configure.ocaml 3,708 1,298 1,453 22.6 bash
12 no-host configure.ocaml 3,656 1,272 1,403 22.6 dash
20 no-host configure.ocaml 4,576 1,862 1,924 22.6 osh-cpython
28 no-host configure.ocaml 3,730 1,286 1,485 22.6 osh-native
36 no-host configure.ocaml 3,733 1,251 1,522 22.6 osh-native-souffle
5 no-host configure.tcc 46 23 24 19.4 bash
13 no-host configure.tcc 40 19 22 19.8 dash
21 no-host configure.tcc 202 132 73 19.4 osh-cpython
29 no-host configure.tcc 48 24 24 19.8 osh-native
37 no-host configure.tcc 47 21 27 19.6 osh-native-souffle
3 no-host configure.util-linux 13,503 5,751 8,235 30.3 bash
11 no-host configure.util-linux 14,359 5,804 9,081 30.3 dash
19 no-host configure.util-linux 30,741 17,479 14,364 30.2 osh-cpython
27 no-host configure.util-linux 13,840 5,497 8,564 30.2 osh-native
35 no-host configure.util-linux 13,848 5,520 8,557 30.3 osh-native-souffle
6 no-host configure.yash 1,798 888 909 26.4 bash
14 no-host configure.yash 1,717 863 859 26.4 dash
22 no-host configure.yash 2,402 1,365 1,080 26.4 osh-cpython
30 no-host configure.yash 1,779 888 896 26.3 osh-native
38 no-host configure.yash 1,776 897 884 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 55 39 16 18.1 osh-cpython
24 no-host hello-world 3 2 1 6.4 osh-native
32 no-host hello-world 3 1 2 5.9 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,506 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,467 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,213 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,130 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 106,364 0 0 0 8 0 1,985 73 bash
9 no-host bin-true 66,378 0 0 0 8 0 1,978 121 dash
17 no-host bin-true 755,291 0 0 0 8 0 1,980 305 osh-cpython
25 no-host bin-true 128,116 0 0 0 16 0 1,976 85 osh-native
33 no-host bin-true 128,152 0 0 0 16 0 1,975 173 osh-native-souffle
2 no-host configure.cpython 2,006,144 0 0 0 32,928 0 14,209 1,356 bash
10 no-host configure.cpython 2,025,722 0 0 0 32,992 0 14,331 1,315 dash
18 no-host configure.cpython 5,977,109 0 0 0 27,512 0 13,038 1,227 osh-cpython
26 no-host configure.cpython 1,996,603 0 0 0 27,520 0 13,105 1,094 osh-native
34 no-host configure.cpython 1,985,548 0 0 0 27,520 0 13,013 1,208 osh-native-souffle
4 no-host configure.ocaml 373,574 0 0 0 5,120 0 1,948 206 bash
12 no-host configure.ocaml 353,843 0 0 0 5,112 0 1,933 273 dash
20 no-host configure.ocaml 606,390 1 0 0 5,112 0 1,850 214 osh-cpython
28 no-host configure.ocaml 376,370 0 0 0 5,120 0 1,927 221 osh-native
36 no-host configure.ocaml 375,588 0 0 0 5,120 0 1,915 189 osh-native-souffle
5 no-host configure.tcc 6,074 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 4,986 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,423 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,474 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,434 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,903,276 1 0 0 42,400 0 18,434 1,382 bash
11 no-host configure.util-linux 2,068,322 0 0 0 42,592 0 17,299 1,444 dash
19 no-host configure.util-linux 5,158,625 9 0 0 39,112 0 17,025 1,225 osh-cpython
27 no-host configure.util-linux 1,810,117 0 0 0 39,120 0 16,992 1,175 osh-native
35 no-host configure.util-linux 1,801,906 0 0 0 39,128 0 16,989 1,182 osh-native-souffle
6 no-host configure.yash 233,569 0 0 0 4,120 0 876 108 bash
14 no-host configure.yash 220,817 0 0 0 3,720 0 871 121 dash
22 no-host configure.yash 364,806 0 0 0 3,728 0 855 102 osh-cpython
30 no-host configure.yash 235,175 0 0 0 3,736 0 850 90 osh-native
38 no-host configure.yash 235,082 0 0 0 3,736 0 852 102 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,962 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e939edb8
dash dash-0ebcf347
osh-cpython osh-4e635eb3
osh-native osh-af3ec7b2
osh-native-souffle osh-176779d8
host label host id
no-host no-host-e4839999