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 py bash ratio native bash ratio
abuild-print-help no-host 19 9 448 22 23.53 1.17
bin-true no-host 678 545 2,231 818 3.29 1.21
configure.cpython no-host 15,014 14,977 28,493 15,238 1.90 1.01
configure.ocaml no-host 3,811 3,716 4,594 3,813 1.21 1.00
configure.tcc no-host 47 41 194 49 4.09 1.03
configure.util-linux no-host 14,002 14,791 31,010 14,388 2.21 1.03
configure.yash no-host 1,806 1,757 2,441 1,823 1.35 1.01
hello-world no-host 1 1 50 3 34.74 2.06

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,552 1,093 23,249 3,224 9.11 1.26
bin-true no-host 106,345 66,431 747,299 128,224 7.03 1.21
configure.cpython no-host 2,219,211 2,241,993 6,152,469 2,231,604 2.77 1.01
configure.ocaml no-host 410,752 391,454 637,637 413,770 1.55 1.01
configure.tcc no-host 6,567 5,470 23,237 6,996 3.54 1.07
configure.util-linux no-host 2,096,929 2,252,582 5,324,088 1,999,598 2.54 0.95
configure.yash no-host 255,559 244,091 384,728 258,183 1.51 1.01
hello-world no-host 150 81 3,719 349 24.79 2.33

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 py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 21.5 8.8 4.97 2.03
bin-true no-host 2.9 1.4 17.4 7.9 6.05 2.73
configure.cpython no-host 27.4 27.5 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.1 19.3 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 1.00 0.99
hello-world no-host 2.8 1.4 17.4 6.0 6.33 2.19

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.0 3,727 3,727 0 681 1,877 1,169 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.9 154,692 12,992 2,799 9,731 78,346 66,615 5,012 3 50,000 0
configure.cpython no-host 15,238 1 59 15.0 27.3 1,772,668 49,197 28,508 86,378 908,098 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,388 3 60 21.3 30.1 2,703,404 44,766 65,812 109,640 1,320,596 1,273,168 49,081 41 131,624 1
configure.ocaml no-host 3,813 1 2 2.6 20.6 150,038 11,045 5,138 7,510 71,634 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,527 30,527 0 1,501 14,801 14,225 350 0 50,000 0
configure.yash no-host 1,823 1 2 2.6 24.2 139,695 7,964 6,600 6,317 70,306 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,270 64,455 42,663 4,552 54,546 57,172 478 3 85,326 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 18 1 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 448 411 41 21.5 osh-cpython
31 no-host abuild-print-help 22 13 10 8.8 osh-native
1 no-host bin-true 678 511 198 2.9 bash
9 no-host bin-true 545 413 139 1.4 dash
17 no-host bin-true 2,231 1,520 967 17.4 osh-cpython
25 no-host bin-true 818 568 265 7.9 osh-native
2 no-host configure.cpython 15,014 9,013 6,397 27.4 bash
10 no-host configure.cpython 14,977 9,197 6,199 27.5 dash
18 no-host configure.cpython 28,493 17,435 12,899 27.4 osh-cpython
26 no-host configure.cpython 15,238 8,966 6,539 27.3 osh-native
4 no-host configure.ocaml 3,811 1,632 1,210 20.6 bash
12 no-host configure.ocaml 3,716 1,559 1,176 20.4 dash
20 no-host configure.ocaml 4,594 2,211 1,585 20.6 osh-cpython
28 no-host configure.ocaml 3,813 1,620 1,233 20.6 osh-native
5 no-host configure.tcc 47 32 16 19.1 bash
13 no-host configure.tcc 41 19 22 19.3 dash
21 no-host configure.tcc 194 139 58 19.4 osh-cpython
29 no-host configure.tcc 49 38 12 19.3 osh-native
3 no-host configure.util-linux 14,002 8,836 5,648 30.3 bash
11 no-host configure.util-linux 14,791 9,163 6,126 30.3 dash
19 no-host configure.util-linux 31,010 20,805 11,277 30.1 osh-cpython
27 no-host configure.util-linux 14,388 8,906 5,685 30.1 osh-native
6 no-host configure.yash 1,806 1,075 740 24.4 bash
14 no-host configure.yash 1,757 1,012 748 24.4 dash
22 no-host configure.yash 2,441 1,492 992 24.4 osh-cpython
30 no-host configure.yash 1,823 1,044 783 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 50 38 12 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.0 osh-native

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,552 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,249 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,224 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 106,345 0 0 0 8 0 1,991 46 bash
9 no-host bin-true 66,431 0 0 0 8 0 1,988 47 dash
17 no-host bin-true 747,299 0 0 0 8 0 2,000 205 osh-cpython
25 no-host bin-true 128,224 0 0 0 16 0 1,985 50 osh-native
2 no-host configure.cpython 2,219,211 0 0 0 32,928 0 14,498 1,280 bash
10 no-host configure.cpython 2,241,993 8 0 0 32,992 0 14,618 1,154 dash
18 no-host configure.cpython 6,152,469 2 0 0 27,512 0 13,295 1,181 osh-cpython
26 no-host configure.cpython 2,231,604 0 0 0 27,520 0 13,280 1,199 osh-native
4 no-host configure.ocaml 410,752 0 0 0 5,120 0 1,953 196 bash
12 no-host configure.ocaml 391,454 0 0 0 5,112 0 1,864 138 dash
20 no-host configure.ocaml 637,637 0 0 0 5,112 0 1,863 180 osh-cpython
28 no-host configure.ocaml 413,770 0 0 0 5,120 0 1,929 183 osh-native
5 no-host configure.tcc 6,567 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,237 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,996 0 0 0 104 0 47 7 osh-native
3 no-host configure.util-linux 2,096,929 1 0 0 42,400 0 18,504 1,158 bash
11 no-host configure.util-linux 2,252,582 0 0 0 42,584 0 17,396 1,264 dash
19 no-host configure.util-linux 5,324,088 16 0 0 39,112 0 17,120 1,408 osh-cpython
27 no-host configure.util-linux 1,999,598 1 0 0 39,128 0 16,992 1,159 osh-native
6 no-host configure.yash 255,559 0 0 0 4,120 0 872 70 bash
14 no-host configure.yash 244,091 0 0 0 3,720 0 870 78 dash
22 no-host configure.yash 384,728 0 0 0 3,728 0 859 94 osh-cpython
30 no-host configure.yash 258,183 0 0 0 3,736 0 854 83 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,719 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-e5c90845
dash dash-308ec8e6
osh-cpython osh-3dae65f9
osh-native osh-4e078e18
host label host id
no-host no-host-556df3ee