Fix profiler and benchmark
This commit is contained in:
parent
7b7ef39d0b
commit
4546c4cffa
|
@ -25,7 +25,7 @@ print(
|
||||||
round(
|
round(
|
||||||
1000000
|
1000000
|
||||||
* timeit.timeit(
|
* timeit.timeit(
|
||||||
"gptc.compile(raw_model, max_ngram_length)",
|
"gptc.Model.compile(raw_model, max_ngram_length)",
|
||||||
number=compile_iterations,
|
number=compile_iterations,
|
||||||
globals=globals(),
|
globals=globals(),
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,4 +13,4 @@ with open("models/raw.json") as f:
|
||||||
with open("models/benchmark_text.txt") as f:
|
with open("models/benchmark_text.txt") as f:
|
||||||
text = f.read()
|
text = f.read()
|
||||||
|
|
||||||
cProfile.run("gptc.compile(raw_model, max_ngram_length)")
|
cProfile.run("gptc.Model.compile(raw_model, max_ngram_length)")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user