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 19 9 474 22 20 25.22 1.15
bin-true no-host 662 525 2,328 770 768 3.52 1.16
configure.cpython no-host 14,869 14,887 28,642 14,930 14,802 1.93 1.00
configure.ocaml no-host 3,783 3,691 4,620 3,775 3,773 1.22 1.00
configure.tcc no-host 46 41 204 48 47 4.40 1.03
configure.util-linux no-host 13,762 14,550 31,180 13,927 13,882 2.27 1.01
configure.yash no-host 1,821 1,742 2,435 1,794 1,793 1.34 0.99
hello-world no-host 1 1 56 3 3 38.60 1.91

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,508 1,133 25,265 3,182 3,120 10.07 1.27
bin-true no-host 106,354 66,390 789,847 125,241 126,141 7.43 1.18
configure.cpython no-host 1,998,455 2,020,901 6,080,877 2,010,690 2,003,623 3.04 1.01
configure.ocaml no-host 373,500 353,444 615,005 376,762 375,958 1.65 1.01
configure.tcc no-host 6,096 4,996 23,869 6,496 6,427 3.92 1.07
configure.util-linux no-host 1,913,496 2,065,563 5,268,751 1,820,752 1,809,213 2.75 0.95
configure.yash no-host 233,861 221,374 367,330 235,961 234,906 1.57 1.01
hello-world no-host 149 78 3,999 346 342 26.84 2.32

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.8 9.0 8.8 5.26 2.09
bin-true no-host 2.9 1.6 18.7 8.1 7.6 6.48 2.82
configure.cpython no-host 29.3 29.2 29.2 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.5 22.6 22.6 0.99 1.00
configure.tcc no-host 19.6 19.7 19.6 19.7 19.7 1.00 1.00
configure.util-linux no-host 30.2 30.2 30.3 30.4 30.1 1.00 1.00
configure.yash no-host 26.3 26.3 26.2 26.2 26.4 1.00 1.00
hello-world no-host 2.9 1.4 18.3 6.3 5.9 6.34 2.18

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.3 6.3 3,809 3,809 0 702 1,870 1,237 2 0 50,000 0
bin-true no-host 770 1 2 2.6 8.1 156,776 15,415 2,902 8,754 77,337 70,685 3,008 3 50,000 0
configure.cpython no-host 14,930 1 68 15.5 29.2 1,785,017 30,561 28,528 91,507 886,574 806,936 25,736 61 50,000 0
configure.util-linux no-host 13,927 3 64 21.6 30.4 2,709,216 53,762 65,726 114,374 1,295,036 1,299,806 32,241 41 131,452 1
configure.ocaml no-host 3,775 1 2 2.6 22.6 149,863 11,180 5,223 7,735 70,874 71,254 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.7 30,579 30,579 0 1,544 14,636 14,399 271 0 50,000 0
configure.yash no-host 1,794 1 2 2.6 26.2 139,885 8,046 6,701 6,399 68,339 65,147 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,339 64,421 42,626 4,546 54,461 57,332 277 3 85,252 1
hello-world no-host 3 0 0 0.3 5.9 3,808 3,808 0 703 1,870 1,235 2 0 50,000 0
bin-true no-host 768 1 2 2.6 7.6 156,775 15,410 2,897 8,755 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 14,802 1 67 15.4 29.1 1,785,016 30,547 28,522 91,508 886,574 806,934 25,736 61 50,000 0
configure.util-linux no-host 13,882 3 64 21.6 30.1 2,709,216 53,737 65,719 114,376 1,295,036 1,299,804 32,241 41 131,438 1
configure.ocaml no-host 3,773 1 2 2.6 22.6 149,863 11,174 5,217 7,737 70,874 71,252 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,579 30,579 0 1,546 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,793 1 2 2.6 26.4 139,885 8,035 6,690 6,401 68,339 65,145 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.8 116,338 64,416 42,621 4,547 54,461 57,330 277 3 85,242 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 19 8 11 4.3 bash
15 no-host abuild-print-help 9 5 4 3.5 dash
23 no-host abuild-print-help 474 396 81 22.8 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 20 11 10 8.8 osh-native-souffle
1 no-host bin-true 662 312 387 2.9 bash
9 no-host bin-true 525 276 262 1.6 dash
17 no-host bin-true 2,328 812 1,783 18.7 osh-cpython
25 no-host bin-true 770 319 469 8.1 osh-native
33 no-host bin-true 768 302 483 7.6 osh-native-souffle
2 no-host configure.cpython 14,869 6,703 8,591 29.3 bash
10 no-host configure.cpython 14,887 6,775 8,553 29.2 dash
18 no-host configure.cpython 28,642 14,472 16,056 29.2 osh-cpython
26 no-host configure.cpython 14,930 6,570 8,643 29.2 osh-native
34 no-host configure.cpython 14,802 6,614 8,469 29.1 osh-native-souffle
4 no-host configure.ocaml 3,783 1,345 1,480 22.6 bash
12 no-host configure.ocaml 3,691 1,308 1,403 22.6 dash
20 no-host configure.ocaml 4,620 1,904 1,927 22.5 osh-cpython
28 no-host configure.ocaml 3,775 1,312 1,501 22.6 osh-native
36 no-host configure.ocaml 3,773 1,334 1,478 22.6 osh-native-souffle
5 no-host configure.tcc 46 22 24 19.6 bash
13 no-host configure.tcc 41 18 23 19.7 dash
21 no-host configure.tcc 204 149 59 19.6 osh-cpython
29 no-host configure.tcc 48 24 24 19.7 osh-native
37 no-host configure.tcc 47 19 28 19.7 osh-native-souffle
3 no-host configure.util-linux 13,762 5,971 8,284 30.2 bash
11 no-host configure.util-linux 14,550 6,014 9,056 30.2 dash
19 no-host configure.util-linux 31,180 17,950 14,310 30.3 osh-cpython
27 no-host configure.util-linux 13,927 5,696 8,449 30.4 osh-native
35 no-host configure.util-linux 13,882 5,588 8,512 30.1 osh-native-souffle
6 no-host configure.yash 1,821 891 940 26.3 bash
14 no-host configure.yash 1,742 911 835 26.3 dash
22 no-host configure.yash 2,435 1,373 1,105 26.2 osh-cpython
30 no-host configure.yash 1,794 899 900 26.2 osh-native
38 no-host configure.yash 1,793 890 907 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 0 1.4 dash
16 no-host hello-world 56 36 20 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 0 3 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,508 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,133 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,265 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,182 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,120 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,354 0 0 0 8 0 1,987 79 bash
9 no-host bin-true 66,390 0 0 0 8 0 1,986 111 dash
17 no-host bin-true 789,847 0 0 0 8 0 2,002 324 osh-cpython
25 no-host bin-true 125,241 0 0 0 16 0 1,993 154 osh-native
33 no-host bin-true 126,141 0 0 0 16 0 1,982 121 osh-native-souffle
2 no-host configure.cpython 1,998,455 0 0 0 32,928 0 14,229 1,330 bash
10 no-host configure.cpython 2,020,901 0 0 0 32,992 0 14,363 1,317 dash
18 no-host configure.cpython 6,080,877 1 0 0 27,512 0 13,057 1,068 osh-cpython
26 no-host configure.cpython 2,010,690 0 0 0 27,520 0 13,006 1,101 osh-native
34 no-host configure.cpython 2,003,623 0 0 0 27,520 0 13,012 1,195 osh-native-souffle
4 no-host configure.ocaml 373,500 0 0 0 5,120 0 1,945 179 bash
12 no-host configure.ocaml 353,444 0 0 0 5,112 0 1,938 222 dash
20 no-host configure.ocaml 615,005 0 0 0 5,112 0 1,846 186 osh-cpython
28 no-host configure.ocaml 376,762 0 0 0 5,120 0 1,927 208 osh-native
36 no-host configure.ocaml 375,958 0 0 0 5,120 0 1,922 186 osh-native-souffle
5 no-host configure.tcc 6,096 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,996 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,869 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 6,496 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,427 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,913,496 0 0 0 42,408 0 18,482 1,200 bash
11 no-host configure.util-linux 2,065,563 0 0 0 42,592 0 17,489 1,535 dash
19 no-host configure.util-linux 5,268,751 3 0 0 39,136 0 17,059 1,253 osh-cpython
27 no-host configure.util-linux 1,820,752 0 0 0 39,120 0 17,019 1,239 osh-native
35 no-host configure.util-linux 1,809,213 0 0 0 39,128 0 16,983 1,221 osh-native-souffle
6 no-host configure.yash 233,861 0 0 0 4,120 0 870 106 bash
14 no-host configure.yash 221,374 0 0 0 3,720 0 871 74 dash
22 no-host configure.yash 367,330 0 0 0 3,728 0 852 108 osh-cpython
30 no-host configure.yash 235,961 0 0 0 3,736 0 852 108 osh-native
38 no-host configure.yash 234,906 0 0 0 3,736 0 853 105 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 0 0 dash
16 no-host hello-world 3,999 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-06ac5d98
dash dash-0ebcf347
osh-cpython osh-adf00bd3
osh-native osh-d6c94dd1
osh-native-souffle osh-c7135bd3
host label host id
no-host no-host-20fc69f9