mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 13:30:40 +00:00
Fix 'require' in benchmarks to work with new relative system (#1120)
Old style require is now called with `pcall` to support comparing against Lua. New style require is now a third option. Edit: this will be a temporary solution until the 'paths' support in .luaurc is fixed.
This commit is contained in:
parent
6413ea8574
commit
ce1800746b
104 changed files with 104 additions and 104 deletions
|
@ -66,7 +66,7 @@ end
|
|||
-- and 'false' otherwise.
|
||||
--
|
||||
-- Example usage:
|
||||
-- local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
-- local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
-- function testFunc()
|
||||
-- ...
|
||||
-- end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--!nonstrict
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
local stretchTreeDepth = 18 -- about 16Mb
|
||||
local longLivedTreeDepth = 16 -- about 4Mb
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
local count = 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
local count = 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
local count = 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
local t = {}
|
||||
|
|
|
@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
bench.runCode(function()
|
||||
for j=1,1e6 do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
local t = table.create(250001, 0)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
local t = table.create(5000001, 0)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
local t = table.create(250001, 0)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
local arr_months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
bench.runCode(function()
|
||||
for j=1,1e6 do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
bench.runCode(function()
|
||||
local src = string.rep("abcdefghijklmnopqrstuvwxyz", 100)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
bench.runCode(function()
|
||||
for outer=1,28,3 do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
local RANKS = "12345678"
|
||||
local FILES = "abcdefgh"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
local function mmul(matrix1, matrix2)
|
||||
local shapeRows = #matrix1
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--!strict
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
local samples = 100_000
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ SOFTWARE.
|
|||
]]
|
||||
-- http://www.bagley.org/~doug/shootout/
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ SOFTWARE.
|
|||
-- http://benchmarksgame.alioth.debian.org/
|
||||
-- contributed by Mike Pall
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ SOFTWARE.
|
|||
-- http://benchmarksgame.alioth.debian.org/
|
||||
-- contributed by Mike Pall
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ SOFTWARE.
|
|||
]]
|
||||
-- Julia sets via interval cell-mapping (quadtree version)
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
-- Modification to be compatible with Lua 5.3
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ SOFTWARE.
|
|||
-- http://benchmarksgame.alioth.debian.org/
|
||||
-- contributed by Mike Pall
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
-- http://www.speich.net/computer/moztesting/3d.htm
|
||||
-- Created by Simon Speich
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
]]
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
http://shootout.alioth.debian.org/
|
||||
contributed by Isaac Gouy
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* returns byte-array encrypted value (16 bytes)
|
||||
*/]]
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
-- Sbox is pre-computed multiplicative inverse in GF(2^8) used in SubBytes and KeyExpansion [§5.1.1]
|
||||
local Sbox = { 0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
http://shootout.alioth.debian.org/
|
||||
contributed by Isaac Gouy
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
]]
|
||||
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
http://shootout.alioth.debian.org/
|
||||
contributed by Isaac Gouy
|
||||
]]
|
||||
local bench = script and require(script.Parent.bench_support) or require("bench_support")
|
||||
local bench = script and require(script.Parent.bench_support) or pcall(require, "bench_support") or require("../../bench_support")
|
||||
|
||||
function test()
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue