mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-09-10 13:17:15 +07:00
new id bmarks
This commit is contained in:
@@ -16,6 +16,7 @@ require 'develop.testing.system_as_query_tests'
|
||||
|
||||
require 'develop.benchmarks.clone_bmarks'
|
||||
require 'develop.benchmarks.common_bmarks'
|
||||
require 'develop.benchmarks.id_bmarks'
|
||||
require 'develop.benchmarks.migration_bmarks'
|
||||
require 'develop.benchmarks.process_bmarks'
|
||||
require 'develop.benchmarks.spawn_bmarks'
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
local evo = require 'evolved'
|
||||
local basics = require 'develop.basics'
|
||||
|
||||
evo.debug_mode(false)
|
||||
|
||||
local N = 1000
|
||||
|
||||
print '----------------------------------------'
|
||||
|
||||
basics.describe_bench(string.format('Id Benchmarks: Acquire and Release %d ids', N),
|
||||
function(tables)
|
||||
for i = 1, N do
|
||||
tables[i] = evo.id()
|
||||
end
|
||||
|
||||
for i = 1, N do
|
||||
evo.destroy(tables[i])
|
||||
end
|
||||
end, function()
|
||||
return {}
|
||||
end)
|
||||
Reference in New Issue
Block a user