File: new_documents_single.py

package info (click to toggle)
ezdxf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104,528 kB
  • sloc: python: 182,341; makefile: 116; lisp: 20; ansic: 4
file content (12 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#  Copyright (c) 2021, Manfred Moitzi
#  License: MIT License

import time
import ezdxf
N = 10000
print(f"create {N} DXF drawings in a single process")
t0 = time.perf_counter()
for _ in range(N):
    ezdxf.new()
t = time.perf_counter()-t0
print(f"created {int(N / t)} DXF drawings per second")