/share/doc/papers/sysperf/a2.t

https://bitbucket.org/freebsd/freebsd-head/ · Raku · 117 lines · 117 code · 0 blank · 0 comment · 8 complexity · be82176d8566b3c872a38a19816e5ef7 MD5 · raw file

  1. .\" Copyright (c) 1985 The Regents of the University of California.
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\" notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\" notice, this list of conditions and the following disclaimer in the
  11. .\" documentation and/or other materials provided with the distribution.
  12. .\" 3. All advertising materials mentioning features or use of this software
  13. .\" must display the following acknowledgement:
  14. .\" This product includes software developed by the University of
  15. .\" California, Berkeley and its contributors.
  16. .\" 4. Neither the name of the University nor the names of its contributors
  17. .\" may be used to endorse or promote products derived from this software
  18. .\" without specific prior written permission.
  19. .\"
  20. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. .\" SUCH DAMAGE.
  31. .\"
  32. .\" @(#)a2.t 5.1 (Berkeley) 4/17/91
  33. .\"
  34. .SH
  35. run (shell script)
  36. .LP
  37. .vS
  38. #! /bin/csh -fx
  39. # Script to run benchmark programs.
  40. #
  41. date
  42. make clean; time make
  43. time syscall 100000
  44. time seqpage -p 7500 10
  45. time seqpage -v -p 7500 10
  46. time randpage -p 7500 30000
  47. time randpage -v -p 7500 30000
  48. time gausspage -p 7500 -s 1 30000
  49. time gausspage -p 7500 -s 10 30000
  50. time gausspage -p 7500 -s 30 30000
  51. time gausspage -p 7500 -s 40 30000
  52. time gausspage -p 7500 -s 50 30000
  53. time gausspage -p 7500 -s 60 30000
  54. time gausspage -p 7500 -s 80 30000
  55. time gausspage -p 7500 -s 10000 30000
  56. time csw 10000
  57. time signocsw 10000
  58. time pipeself 10000 512
  59. time pipeself 10000 4
  60. time udgself 10000 512
  61. time udgself 10000 4
  62. time pipediscard 10000 512
  63. time pipediscard 10000 4
  64. time udgdiscard 10000 512
  65. time udgdiscard 10000 4
  66. time pipeback 10000 512
  67. time pipeback 10000 4
  68. time udgback 10000 512
  69. time udgback 10000 4
  70. size forks
  71. time forks 1000 0
  72. time forks 1000 1024
  73. time forks 1000 102400
  74. size vforks
  75. time vforks 1000 0
  76. time vforks 1000 1024
  77. time vforks 1000 102400
  78. countenv
  79. size nulljob
  80. time execs 1000 0 nulljob
  81. time execs 1000 1024 nulljob
  82. time execs 1000 102400 nulljob
  83. time vexecs 1000 0 nulljob
  84. time vexecs 1000 1024 nulljob
  85. time vexecs 1000 102400 nulljob
  86. size bigjob
  87. time execs 1000 0 bigjob
  88. time execs 1000 1024 bigjob
  89. time execs 1000 102400 bigjob
  90. time vexecs 1000 0 bigjob
  91. time vexecs 1000 1024 bigjob
  92. time vexecs 1000 102400 bigjob
  93. # fill environment with ~1024 bytes
  94. setenv a 012345678901234567890123456789012345678901234567890123456780123456789
  95. setenv b 012345678901234567890123456789012345678901234567890123456780123456789
  96. setenv c 012345678901234567890123456789012345678901234567890123456780123456789
  97. setenv d 012345678901234567890123456789012345678901234567890123456780123456789
  98. setenv e 012345678901234567890123456789012345678901234567890123456780123456789
  99. setenv f 012345678901234567890123456789012345678901234567890123456780123456789
  100. setenv g 012345678901234567890123456789012345678901234567890123456780123456789
  101. setenv h 012345678901234567890123456789012345678901234567890123456780123456789
  102. setenv i 012345678901234567890123456789012345678901234567890123456780123456789
  103. setenv j 012345678901234567890123456789012345678901234567890123456780123456789
  104. setenv k 012345678901234567890123456789012345678901234567890123456780123456789
  105. setenv l 012345678901234567890123456789012345678901234567890123456780123456789
  106. setenv m 012345678901234567890123456789012345678901234567890123456780123456789
  107. setenv n 012345678901234567890123456789012345678901234567890123456780123456789
  108. setenv o 012345678901234567890123456789012345678901234567890123456780123456789
  109. countenv
  110. time execs 1000 0 nulljob
  111. time execs 1000 1024 nulljob
  112. time execs 1000 102400 nulljob
  113. time execs 1000 0 bigjob
  114. time execs 1000 1024 bigjob
  115. time execs 1000 102400 bigjob
  116. .vE
  117. .bp