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 471 22 20 25.28 1.17
bin-true no-host 651 531 2,282 789 786 3.50 1.21
configure.cpython no-host 14,605 14,653 28,441 14,860 14,796 1.95 1.02
configure.ocaml no-host 3,767 3,678 4,609 3,769 3,763 1.22 1.00
configure.tcc no-host 46 41 204 48 47 4.44 1.04
configure.util-linux no-host 13,639 14,559 31,079 13,939 13,925 2.28 1.02
configure.yash no-host 1,775 1,740 2,443 1,807 1,792 1.38 1.02
hello-world no-host 1 1 56 3 3 42.38 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,525 1,115 23,529 3,228 3,091 9.32 1.28
bin-true no-host 106,301 66,495 760,077 124,158 127,228 7.15 1.17
configure.cpython no-host 1,994,750 2,023,844 5,984,130 2,010,339 1,982,851 3.00 1.01
configure.ocaml no-host 373,694 354,154 605,509 375,618 375,121 1.62 1.01
configure.tcc no-host 6,078 5,028 23,407 6,493 6,430 3.85 1.07
configure.util-linux no-host 1,907,437 2,067,653 5,168,518 1,806,324 1,793,838 2.71 0.95
configure.yash no-host 233,886 222,191 363,463 235,663 235,123 1.55 1.01
hello-world no-host 148 75 3,948 344 337 26.68 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.6 9.2 8.4 5.22 2.12
bin-true no-host 3.0 1.4 18.4 8.0 7.7 6.10 2.65
configure.cpython no-host 28.9 29.0 29.1 29.1 29.0 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.6 19.6 19.7 19.6 19.6 1.01 1.00
configure.util-linux no-host 30.2 30.3 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.3 26.4 26.2 26.4 1.00 1.00
hello-world no-host 2.9 1.4 18.3 6.4 5.9 6.33 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.0 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 14,860 1 68 14.9 29.1 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,939 3 65 21.2 30.3 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,769 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.6 30,539 30,539 0 1,518 14,608 14,413 271 0 50,000 0
configure.yash no-host 1,807 1 2 2.5 26.2 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 786 1 2 2.6 7.7 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 14,796 1 66 14.9 29.0 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,925 3 63 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,763 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,792 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.4 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 19 10 9 4.3 bash
15 no-host abuild-print-help 9 4 6 3.5 dash
23 no-host abuild-print-help 471 410 65 22.6 osh-cpython
31 no-host abuild-print-help 22 13 9 9.2 osh-native
39 no-host abuild-print-help 20 11 10 8.4 osh-native-souffle
1 no-host bin-true 651 315 370 3.0 bash
9 no-host bin-true 531 274 268 1.4 dash
17 no-host bin-true 2,282 796 1,742 18.4 osh-cpython
25 no-host bin-true 789 302 504 8.0 osh-native
33 no-host bin-true 786 305 497 7.7 osh-native-souffle
2 no-host configure.cpython 14,605 6,630 8,388 28.9 bash
10 no-host configure.cpython 14,653 6,640 8,445 29.0 dash
18 no-host configure.cpython 28,441 14,113 16,209 29.1 osh-cpython
26 no-host configure.cpython 14,860 6,578 8,564 29.1 osh-native
34 no-host configure.cpython 14,796 6,562 8,506 29.0 osh-native-souffle
4 no-host configure.ocaml 3,767 1,304 1,485 22.6 bash
12 no-host configure.ocaml 3,678 1,298 1,403 22.6 dash
20 no-host configure.ocaml 4,609 1,859 1,962 22.6 osh-cpython
28 no-host configure.ocaml 3,769 1,281 1,523 22.6 osh-native
36 no-host configure.ocaml 3,763 1,299 1,500 22.6 osh-native-souffle
5 no-host configure.tcc 46 24 23 19.6 bash
13 no-host configure.tcc 41 18 23 19.6 dash
21 no-host configure.tcc 204 142 65 19.7 osh-cpython
29 no-host configure.tcc 48 20 29 19.6 osh-native
37 no-host configure.tcc 47 24 23 19.6 osh-native-souffle
3 no-host configure.util-linux 13,639 5,800 8,338 30.2 bash
11 no-host configure.util-linux 14,559 5,865 9,209 30.3 dash
19 no-host configure.util-linux 31,079 17,647 14,523 30.3 osh-cpython
27 no-host configure.util-linux 13,939 5,557 8,573 30.3 osh-native
35 no-host configure.util-linux 13,925 5,566 8,569 30.3 osh-native-souffle
6 no-host configure.yash 1,775 889 895 26.3 bash
14 no-host configure.yash 1,740 868 876 26.3 dash
22 no-host configure.yash 2,443 1,338 1,149 26.4 osh-cpython
30 no-host configure.yash 1,807 889 923 26.2 osh-native
38 no-host configure.yash 1,792 882 914 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 40 16 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.4 osh-native
32 no-host hello-world 3 2 1 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,525 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,529 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,228 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,091 0 0 0 16 0 38 3 osh-native-souffle
1 no-host bin-true 106,301 0 0 0 8 0 1,993 78 bash
9 no-host bin-true 66,495 0 0 0 8 0 1,971 161 dash
17 no-host bin-true 760,077 0 0 0 8 0 1,985 329 osh-cpython
25 no-host bin-true 124,158 0 0 0 16 0 1,988 141 osh-native
33 no-host bin-true 127,228 0 0 0 16 0 1,978 178 osh-native-souffle
2 no-host configure.cpython 1,994,750 0 0 0 32,928 0 14,259 1,196 bash
10 no-host configure.cpython 2,023,844 0 0 0 32,992 0 14,381 1,253 dash
18 no-host configure.cpython 5,984,130 1 0 0 27,512 0 13,056 1,109 osh-cpython
26 no-host configure.cpython 2,010,339 0 0 0 27,520 0 13,101 1,161 osh-native
34 no-host configure.cpython 1,982,851 0 0 0 27,520 0 13,023 1,149 osh-native-souffle
4 no-host configure.ocaml 373,694 0 0 0 5,120 0 1,956 181 bash
12 no-host configure.ocaml 354,154 0 0 0 5,112 0 1,933 163 dash
20 no-host configure.ocaml 605,509 0 0 0 5,112 0 1,851 202 osh-cpython
28 no-host configure.ocaml 375,618 0 0 0 5,120 0 1,927 372 osh-native
36 no-host configure.ocaml 375,121 0 0 0 5,120 0 1,930 214 osh-native-souffle
5 no-host configure.tcc 6,078 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,028 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,407 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,493 0 0 0 104 0 45 3 osh-native
37 no-host configure.tcc 6,430 0 0 0 104 0 46 2 osh-native-souffle
3 no-host configure.util-linux 1,907,437 0 0 0 42,400 0 18,531 1,143 bash
11 no-host configure.util-linux 2,067,653 0 0 0 42,584 0 17,337 1,495 dash
19 no-host configure.util-linux 5,168,518 13 0 0 39,112 0 16,963 1,235 osh-cpython
27 no-host configure.util-linux 1,806,324 1 0 0 39,120 0 16,991 1,154 osh-native
35 no-host configure.util-linux 1,793,838 0 0 0 39,128 0 16,961 1,250 osh-native-souffle
6 no-host configure.yash 233,886 0 0 0 4,120 0 867 84 bash
14 no-host configure.yash 222,191 0 0 0 3,720 0 869 90 dash
22 no-host configure.yash 363,463 0 0 0 3,728 0 850 77 osh-cpython
30 no-host configure.yash 235,663 0 0 0 3,736 0 852 103 osh-native
38 no-host configure.yash 235,123 0 0 0 3,736 0 850 84 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,948 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-cbe9e843
dash dash-0ebcf347
osh-cpython osh-6c593bc2
osh-native osh-75f91169
osh-native-souffle osh-3091de2e
host label host id
no-host no-host-e4839999